FinRL-Meta icon indicating copy to clipboard operation
FinRL-Meta copied to clipboard

Length of values does not match length of index

Open mhdmyz opened this issue 2 years ago • 2 comments

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.

mhdmyz avatar May 14 '22 11:05 mhdmyz

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.

zhumingpassional avatar May 15 '22 03:05 zhumingpassional

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.

mhdmyz avatar May 15 '22 08:05 mhdmyz