Giter VIP home page Giter VIP logo

Comments (6)

dexhunter avatar dexhunter commented on June 23, 2024

possible related to this comment

from pgportfolio.

gittaylor avatar gittaylor commented on June 23, 2024

Yes, I am having the same problem. I was able to modify the Backtest class to get new data, but tflearn will not accept the new history for training. Any help would be appreciated.

from pgportfolio.

redzhepdx avatar redzhepdx commented on June 23, 2024

In backtesting there are two options to test model online or offline.

Online : Takes data from poloniex and updates database
Offline : Using pre-collected datas in Data.db

Backtesting module using rollingtrainer's datamatrix and it takes all datas from database at the begginning of the backtest.

But I couldn't find a way to get new data and process it .
It is using day based date to take data in given day based interval.
Is there any module to update database dynamically for livetrading without resetting learning of the model ?

from pgportfolio.

ZhengyaoJiang avatar ZhengyaoJiang commented on June 23, 2024

Is there any module to update database dynamically for livetrading without resetting learning of the model ?

A simple(while not elegant) method is to append new data to the global_data (Panel in the memory) and modify all the related indexes.

from pgportfolio.

redzhepdx avatar redzhepdx commented on June 23, 2024

I am doing this for real time data ;

  • last input X: global_data[: , :, -window_size:]
  • apply action according to X
  • Wait n-minutes
  • get input again
  • y : newX[:, :, -1] / newX[:, :, -2]
    But couldn't solve the how to use thid x, y data to update RL agent.
    I think RL training must be always active for the understand every new situation , but it seems it don't train model in backtesting part adding None object to experience tracker module.
    Also thank you for first fast reply :)

from pgportfolio.

einarbmag avatar einarbmag commented on June 23, 2024

Thank you for the hints @ZhengyaoJiang and @redzhepdx, will give it another go now!

from pgportfolio.

Related Issues (20)

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.