simoninithomas / Deep_reinforcement_learning_Course

Implementations from the free course Deep Reinforcement Learning with Tensorflow and PyTorch
http://www.simoninithomas.com/deep-rl-course
3.74k stars 1.23k forks source link

Cannot get Q value prediction for next_state #39

Open Christopheraburns opened 5 years ago

Christopheraburns commented 5 years ago

I am getting an error on this line:

Qs_next_state = sess.run(DQNetwork.output, feed_dict={DQNetwork.inputs_: next_states_mb})

Tensorflow does not like the np.array structure. I am assuming something is happening when we create the mini-batches from batch.

Anyone else get this error?

Error in train function: setting an array element with a sequence. <class 'ValueError'>

TIA