Coder Social home page Coder Social logo

iteration设置大于1的话,没有把上一次的final_state作为下一次的init_state,这样没问题么 about stock_predict_with_lstm HOT 1 CLOSED

hichenway avatar hichenway commented on June 23, 2024
iteration设置大于1的话,没有把上一次的final_state作为下一次的init_state,这样没问题么

from stock_predict_with_lstm.

Comments (1)

hichenway avatar hichenway commented on June 23, 2024

你好,这样做是可以的,除模型之外,还需要在训练数据的生成上也做改变,相关代码都已经更新在GitHub中了。
但是这样做的预测效果并不比之前好,个人觉得可能的原因:目前是按照batch_size = 1,也即一个一个样本训练的,这样才能让上一个样本的final_state作为下一次的init_state。但这样训练batch太小,容易过拟合。
当然,在预测的时候是把上一次的final_state作为下一次的init_state,预测结果有提升。

from stock_predict_with_lstm.

Related Issues (11)

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.