Code Monkey home page Code Monkey logo

cosine_stateful_lstm's People

Contributors

youyuge34 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cosine_stateful_lstm's Issues

预测值错误

运行这个notebook,预测值会逐渐小于 -4,跟你的运行结果差别很大。你再调试下?

关于训练数据的问题

你好,我对你代码中训练数据的产生方式有疑问。我理解的是:
stateful的LSTM需要训练数据的每个样本按顺序是能够衔接上的。
比如原始数据为:
p0,p1,p2,p3,p4,p5,p6......pn
那么在样本划分的时候需要timestep(你的代码中的look_back)和划分步长相等,比如look_back=3时,是这样:
sample1 x:[p0,p1,p2],y:[p3]
sample2 x:[p3,p4,p5],y:[p6]
sample3 x:[p6,p7,p8],y:[p9]
......
look_back=5时,是这样:
sample1 x:[p0,p1,p2,p3,p4],y:[p5]
sample2 x:[p5,p6,p7,p8,p9],y:[p10]
sample3 x:[p10,p11,p12,p13,p14],y:[p15]
......
这样state才能在一个fit中按原来的顺序传递。

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.