llSourcell / Reinforcement_Learning_for_Stock_Prediction

This is the code for "Reinforcement Learning for Stock Prediction" By Siraj Raval on Youtube
638 stars 362 forks source link

evaluate.py triggers unexpected argument passed to optimizer : amsgrad error #15

Closed mistahcase closed 6 years ago

mistahcase commented 6 years ago

After training a model, when I try to run the evaluation.py, I get the following error: "TypeError: Unexpected keyword argument passed to optimizer: amsgrad"

When looking at Stackoverflow, it seems to be an error tied to saving and loading a Keras model if it was saved with on version of Keras and loaded with another. However, I did the 2 steps right after each other, and there was no new update during that time.

I haven't changed anything to the code, so I was wondering if any of you had any idea how I might fix it?