You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens when executed with Python (3.6.13) in a conda environment. I receive the following error:
Exception in thread Thread-6:
Traceback (most recent call last):
File "C:\Users\rcapu\.conda\envs\poke_env_2\lib\threading.py", line 916, in _bootstrap_inner
self.run()
File "C:\Users\rcapu\.conda\envs\poke_env_2\lib\threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\rcapu\.conda\envs\poke_env_2\lib\site-packages\poke_env\player\env_player.py", line 361, in <lambda>
target=lambda: env_algorithm_wrapper(self, env_algorithm_kwargs)
File "C:\Users\rcapu\.conda\envs\poke_env_2\lib\site-packages\poke_env\player\env_player.py", line 345, in env_algorithm_wrapper
env_algorithm(player, **kwargs)
File "<ipython-input-2-f04533e2348b>", line 83, in dqn_training
dqn.fit(player, nb_steps=nb_steps)
File "C:\Users\rcapu\.conda\envs\poke_env_2\lib\site-packages\rl\core.py", line 169, in fit
action = self.forward(observation)
File "C:\Users\rcapu\.conda\envs\poke_env_2\lib\site-packages\rl\agents\dqn.py", line 227, in forward
q_values = self.compute_q_values(state)
File "C:\Users\rcapu\.conda\envs\poke_env_2\lib\site-packages\rl\agents\dqn.py", line 69, in compute_q_values
q_values = self.compute_batch_q_values([state]).flatten()
File "C:\Users\rcapu\.conda\envs\poke_env_2\lib\site-packages\rl\agents\dqn.py", line 64, in compute_batch_q_values
q_values = self.model.predict_on_batch(batch)
File "C:\Users\rcapu\.conda\envs\poke_env_2\lib\site-packages\tensorflow\python\keras\engine\training.py", line 1036, in predict_on_batch
self._make_predict_function()
File "C:\Users\rcapu\.conda\envs\poke_env_2\lib\site-packages\tensorflow\python\keras\engine\training.py", line 2027, in _make_predict_function
**kwargs)
File "C:\Users\rcapu\.conda\envs\poke_env_2\lib\site-packages\tensorflow\python\keras\backend.py", line 3544, in function
return EagerExecutionFunction(inputs, outputs, updates=updates, name=name)
File "C:\Users\rcapu\.conda\envs\poke_env_2\lib\site-packages\tensorflow\python\keras\backend.py", line 3429, in __init__
raise ValueError('Unknown graph. Aborting.')
ValueError: Unknown graph. Aborting.
I am guessing this has to do with a dependency issue - attached is a requirements.txt containing all installed packages:
I tried getting the example to run in Jupyter, to no avail.
Jupyter creates an event loop, which is interfering with the way play_against is currently implemented. This should be fixed in future updates that include large changes to play_against and EnvPlayer in general.
I would recommend not using jupyter to run your training scripts.
This happens when executed with Python (3.6.13) in a conda environment. I receive the following error:
I am guessing this has to do with a dependency issue - attached is a
requirements.txt
containing all installed packages:The text was updated successfully, but these errors were encountered: