openAI gymのgym.core.Envを継承して自分で環境を作っています。それをkeras-rlを用いて強化学習の実装をしようと思っています。
環境のクラスを仮にHoge(gym.core.Env)としてそれがうまく動くかインスタンス化だけしました。すると以下の様な警告が出ました。
/usr/local/lib/python3.6/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float
to np.floating
is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type
.
from ._conv import register_converters as _register_converters
Using TensorFlow backend.
WARN: gym.spaces.Box autodetected dtype as <class 'numpy.float32'>. Please provide explicit dtype.
これはどういう事でしょうか?observation_spaceの型が問題なのでしょうか?ちなみにHogeのイニシャライザの中でobservation_spaceに関しては以下の様に書きました。
Python
1self.action_space = gym.spaces.Discrete(6) 2self._shape = (20, 124) 3self.observation_space = gym.spaces.Box(low=0, 4 high=1, 5 shape=self._shape)

あなたの回答
tips
プレビュー