Alphazero03-1 debug list
These are debug list for DeepReinforcementLearning.
https://github.com/AppliedDataSciencePartners/DeepReinforcementLearning
Environment is following
Windows10
python3.6.4
tensorflow1.5.1
Keras2.1.5
・NameError: name ‘xrange’ is not defined
1 2 |
Change from xrange to range in all sources. xrange -> range |
・AttributeError: module ‘tensorflow.python.ops.nn’ has no attribute ‘leaky_relu’
Upgrade to latest tensorflow version(1.5.1).
1 2 3 |
>tensorflow (1.5.1) - TensorFlow helps the tensorsflow INSTALLED: 1.2.1 LATEST: 1.5.1 |
1 |
pip install --upgrade tensorflow |
・ImportError: Failed to import pydot. You must install pydot and graphviz for pydotprint to work.
Install graphviz for windows and add graphviz directory to OS PATH.
1 2 |
Download graphviz for windows and install. https://graphviz.gitlab.io/_pages/Download/Download_windows.html |
1 |
conda install graphviz |
1 |
Add C:\Program Files (x86)\Graphviz2.38\bin to OS PATH |
・NameError: name ‘reload’ is not defined
Add following to run.ipynb.
1 |
from importlib import reload |
・TypeError: type numpy.ndarray doesn’t define __round__ method
1 2 |
Change round to np.round in MCTS.py round -> np.round |