Git Product home page Git Product logo

Comments (3)

Kismuz avatar Kismuz commented on May 28, 2024

@AdrianP- ,
State shape is unrelated to frequency of agent taking action. It is just time-embedding dimension, like frame-stacking in atari domain, meant to help with solving temporal-dependant POMDP.
Shape (1,4) means one candle, shape (10,4) - ten last candles as an observation.

There is another control for agent exactly telling how many observations to skip until taking another action (in-between assumed to be hold). I's described in source code, line 159 in btgym/btgym/backtrader.py:

            skip_frame=None,
                # Number of environment steps to skip before returning next response,
                # e.g. if set to 10 -- agent will interact with environment every 10th episode step;
                # Every other step agent's action is assumed to be 'hold'.
                # Note: INFO part of environment response is a list of all skipped frame's info's,
                #       i.e. [info[-9], info[-8], ..., info[0].
        )

It should be in documentation, but I just don't have time to write it properly. I'll try to fix it as soon as I can.

btgym/examples/setting_up_environment_full.ipynb has an exampe with skipped-frames.

from btgym.

AdrianP- avatar AdrianP- commented on May 28, 2024

Sorry, I explained wrong. I get your point but,as far as my knowledge, the new observations that you get each step should be only one.
That is the strategy on OpenAI baseline, because every new action save in a ReplayBuffer.

Nevertheless, the patch is trivial, so I'm going to do for my version :)

from btgym.

Kismuz avatar Kismuz commented on May 28, 2024

Ok!

from btgym.

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.