AI4Finance-Foundation / FinRL-Meta

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

Length of values does not match length of index #156

Open mhdmyz opened 2 years ago

mhdmyz commented 2 years ago

Hi, I installed FinRL on my macbook using the codes in the installation block of the MultiCrypto_Trading.ipynb, but while testing I get the following warning: "Length of values (2023) does not match length of index (1999)" and my final episode_return is different from running the same codes on the colab! 0.96 vs 1.08! The issue gets resolved when changing the time_interval to '1d' but for any smaller time_interval I have the same problem.

zhumingpassional commented 2 years ago

You can print them and check whether some values are missing. You can revise the start-end date and time interval to make sure no values are missing.

Some RL algorithms output stochastic policies, so that the results may be different.

mhdmyz commented 2 years ago

I understand. But I'm running the exact the same code with a constant random seed. The results does not change no matter how many times I run the code whether on colab or my local machine. I'm also running the exact MultiCrypto_Trading.ipynb without changing anything in it.