I'm trying to use that Object as This Blog uses in His Code but when I do from rl.agents.dqn import DQfDAgent
it returns me and error ImportError: cannot import name 'DQfDAgent'
.
I've done a dir(rl.agents.dqn)
and there is no DQfDAgent
object so, how has the man of the blog done it?
(Update 1)
I've already done this:
pip install -e git+git://github.com/jakegrigsby/keras-rl.git#egg=keras-rl
but it returns this error:
Command "git clone -q git://github.com/jakegrigsby/keras-rl.git C:\Users\myuser\src\keras-rl" failed with error code 128 in None
note that the master version of keras-rl may be missing my additions. See my fork.
Just do a quick search for DQfDAgent and you ll see that it is not in the rl.agents.dqn source code page. Use the branch of the author (here) to import properly and use the agent he has implemented but which is not in the official version.