IndexError in train.py
Opened this issue · 2 comments
daventhedude commented
Hey, could someone help me with my problem? What am i overseeing? :)
stock_name, window_size, episode_count = sys.argv[1], int(sys.argv[2]), int(sys.argv[3])
IndexError: list index out of range
Kernel died, restarting
xtr33me commented
Sorry really not enough to go off here. However, I'd open this in your favorite IDE...VSCode or whatever your choice and put a breakpoint there and see what the value of sys.argv is. It might give you a little more of a clue as to what is going on there.
iorobot commented
how are you running the training?
I think the error is telling you that you use not enough arguments.
Be sure to use 3 arguments when running like
python train.py ^GSPC 10 1000