Kismuz / btgym

Scalable, event-driven, deep-learning-friendly backtesting library
https://kismuz.github.io/btgym/
GNU Lesser General Public License v3.0
984 stars 260 forks source link

Tensorboard Analysis Discussion #90

Closed JaCoderX closed 5 years ago

JaCoderX commented 5 years ago

I'm currently training a basic model (~500k steps so far) just to get an intuition of the evaluation process. there are 2 main tabs that hold most of the information, Scalars and Images.

In the scalar section, at first glance the metrics looks a bit chaotic (better after smoothing). but I wonder what would be a good expected result for each metric (or at least what should the main ones look like)

In the image section we have the backtrader episode summary (which is super cool to see!!!) and 3 more images (external, internal and human) but i'm not sure what to look for in them.

those are more general questions about the analysis process but I also notice a few things that might be more model specific.

the model have a SMA-1024 which is about a third of the length of the episode size i choose. the problem is that backtrader is waiting for the longest indicator period before making the first decision (part of backtrader design) so a third of the episode is wasted. don't know if there is anything that can be done?

another thing i notice is that roughly 20% of the times not a single action is being made in the episode. is this normal behavior?

Kismuz commented 5 years ago

@JacobHanouna,

3 more images (external, internal and human)

those shows single last env. observation of the episode as seen by:

two later presented as map-image but could be rendered as plots as well by setting env setup kwarg: render_state_as_image=False

these can be inspected to exclude common errors: flat or inconsistent inputs, min/max values ranges (shown in titles) etc.

backtrader is waiting for the longest indicator period before making the first decision ... if there is anything that can be done?

Related:

69

https://github.com/Kismuz/btgym/issues/35#issuecomment-362694447