Git Product home page Git Product logo

lstm_rnn's Introduction

在PTB数据集上使用循环神经网络实现语言建模

运行环境:Windows 10 TensorFlow-gpu 1.11

搭建一个两层深的循环神经网络,每一层有200个LSTM结构,两层神经网络间设置Dropout。

总共训练13个Epoch,权重初始值为0.1,学习速率初始值为1.0,4个Epoch后开始对学习率进行调整,学习衰减率为0.5,batch_size设置为20,num_steps设置为20。

13个Epoch后,在测试集上的perplexity为115.368。

运行方法:首先打开LSTM_RNN.py文件,把第169行的PTB路径设置为自己PTB文件的路径,然后运行python LSTM_RNN.py。

运行过程截图

lstm_rnn's People

Contributors

zetionclement 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.