Error in reinforcement learning notebook Lunar Lander assignment for Adam optimizer

Hi guys!
I faced a ridiculous and unreasonable error in the reinforcement learning Lunar Lander assignment test cell that other students and I checked together, and we are sure there is no fault in the code (as my code is even similar to the hint of notebook!!!), but still, it is not solved so I can’t upload my assignment :frowning:

The error is: “Wrong optimizer. Expected: <class ‘tensorflow.python.keras.optimizer_v2.adam.Adam’>, got: <class ‘tensorflow.python.keras.optimizer_v2.adam.Adam’>”

while I coded: "optimizer = Adam(learning_rate=ALPHA) "

I would be appreciative if anybody could help …

I’m unable to replicate the error.
Do you have more information?

1 Like

Hi @Sajjad_Rezvani

here in test_optimizer you will send (optimizer, ALPHA) not (Adam, ALPHA) as it will check for which optimizer are you used and is it in correct way of implementation

please feel free to ask any questions,

1 Like

Tnx a lot.
You are right. However, the point is that part of the code was the default code of the notebook cell not mine.