FinRL icon indicating copy to clipboard operation
FinRL copied to clipboard

Could not broadcast input array from shape

Open phamanhtu17295 opened this issue 4 years ago • 4 comments

I am trying to run your code in Colab https://colab.research.google.com/drive/11pErFMRAWFbWs-P5iArJheFxF2Mh-F1v#scrollTo=IhizvNwcrg1n

where I stumble in the problem:

Screenshot from 2021-04-02 14-33-19

I only used 10 stocks for my model? Is that the one causing the problem? ValueError: could not broadcast input array from shape (10,2) into shape (18,10)

The data I used: vietnamdata.txt

phamanhtu17295 avatar Apr 02 '21 07:04 phamanhtu17295

Did this issue end up being resolved? I am trying to use non YF data and I am having the same issue. ValueError: could not broadcast input array from shape (6341,) into shape (32997,)

george-adams1 avatar Jun 06 '22 16:06 george-adams1

+1 @george-adams1, @ckive. Trying to use finrl.config_tickers.SP_500_TICKER. Just the basic data. Getting same error. Any solutions yet??

Ujjawal-K-Panchal avatar Jun 29 '22 18:06 Ujjawal-K-Panchal

Yes, wasn't the issue I originally thought. Make sure your index is set the saw FinRL likes it. That solved my problem

george-adams1 avatar Jun 29 '22 18:06 george-adams1

Interesting. I'm sorry I donot get it. Can you give an example perhaps to explain make sure your index is set? Btw, cheers for the instant reply! :beers:

Ujjawal-K-Panchal avatar Jun 29 '22 19:06 Ujjawal-K-Panchal