Giter Site home page Giter Site logo

rnn_alphabet_pytorch's Introduction

RNN_Alphabet_pytorch

An interesting simple for predicting alphabet.

Introduction

代码中定义了两种模型,一种使用了RNN框架,另一种使用LSTM;
两种框架结果不同;

  1. 使用RNN的结果:
Input: ['N', 'O', 'P', 'Q', 'R']  Prediction: S
Input: ['G', 'H', 'I', 'J', 'K']  Prediction: L
Input: ['L', 'M', 'N', 'O', 'P']  Prediction: Q
Input: ['M', 'N', 'O', 'P', 'Q']  Prediction: R
Input: ['B', 'C', 'D', 'E', 'F']  Prediction: F
Input: ['C', 'D', 'E', 'F', 'G']  Prediction: H
Input: ['J', 'K', 'L', 'M', 'N']  Prediction: O
Input: ['H', 'I', 'J', 'K', 'L']  Prediction: M
Input: ['S', 'T', 'U', 'V', 'W']  Prediction: X
Input: ['K', 'L', 'M', 'N', 'O']  Prediction: P
Input: ['I', 'J', 'K', 'L', 'M']  Prediction: N
Input: ['F', 'G', 'H', 'I', 'J']  Prediction: K
Input: ['Q', 'R', 'S', 'T', 'U']  Prediction: V
Input: ['P', 'Q', 'R', 'S', 'T']  Prediction: U
Input: ['D', 'E', 'F', 'G', 'H']  Prediction: I
Input: ['U', 'V', 'W', 'X', 'Y']  Prediction: Z
Input: ['R', 'S', 'T', 'U', 'V']  Prediction: W
Input: ['E', 'F', 'G', 'H', 'I']  Prediction: J
Input: ['A', 'B', 'C', 'D', 'E']  Prediction: F
Input: ['O', 'P', 'Q', 'R', 'S']  Prediction: T
Input: ['T', 'U', 'V', 'W', 'X']  Prediction: Z
  1. 使用LSTM的结果:
Input: ['C', 'D', 'E', 'F', 'G']  Prediction: H
Input: ['U', 'V', 'W', 'X', 'Y']  Prediction: Z
Input: ['J', 'K', 'L', 'M', 'N']  Prediction: O
Input: ['G', 'H', 'I', 'J', 'K']  Prediction: L
Input: ['D', 'E', 'F', 'G', 'H']  Prediction: I
Input: ['N', 'O', 'P', 'Q', 'R']  Prediction: S
Input: ['L', 'M', 'N', 'O', 'P']  Prediction: Q
Input: ['F', 'G', 'H', 'I', 'J']  Prediction: K
Input: ['R', 'S', 'T', 'U', 'V']  Prediction: W
Input: ['O', 'P', 'Q', 'R', 'S']  Prediction: T
Input: ['K', 'L', 'M', 'N', 'O']  Prediction: P
Input: ['H', 'I', 'J', 'K', 'L']  Prediction: M
Input: ['Q', 'R', 'S', 'T', 'U']  Prediction: V
Input: ['M', 'N', 'O', 'P', 'Q']  Prediction: R
Input: ['I', 'J', 'K', 'L', 'M']  Prediction: N
Input: ['P', 'Q', 'R', 'S', 'T']  Prediction: U
Input: ['B', 'C', 'D', 'E', 'F']  Prediction: G
Input: ['S', 'T', 'U', 'V', 'W']  Prediction: X
Input: ['E', 'F', 'G', 'H', 'I']  Prediction: J
Input: ['A', 'B', 'C', 'D', 'E']  Prediction: F
Input: ['T', 'U', 'V', 'W', 'X']  Prediction: Y

思考:为什么LSTM性能更好? 改变序列长度,会怎样?

Contact: [email protected]

rnn_alphabet_pytorch's People

Contributors

ucancallmejia avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.