AI4Finance-Foundation / FinRL-Meta

FinRL­-Meta: Dynamic datasets and market environments for FinRL.
https://ai4finance.org
MIT License
1.24k stars 576 forks source link

[WIP] Try pass vectorbt data to Agent #169

Closed dev590t closed 2 years ago

dev590t commented 2 years ago

This PR contains a tutorial to try to pass vectorbt data to the agent

dev590t commented 2 years ago

I need some help. I'm blocked on a error.

In the notebook file, I get this error:

trained_a2c = agent.train_model(model=model_a2c, 
                             tb_log_name='a2c',
                             total_timesteps=50000)
# ValueError: cannot convert float NaN to integer

But the training data doesn't contain any NaN:

processed_full.isnull().sum().sum()
# return 0

Where is from the NaN value?

ZiyiXia commented 2 years ago

Sorry for merging it in hurry. Would you like to submit an issue about the problem mentioned above? Thanks for your effort and contribution!

dev590t commented 2 years ago

Ok, I open it