Part of code is outdated. I updated one small issue with old alias in numpy. Basically I changed "np.bool8" -> "np.bool_" in 3 places, because otherwise there is a warning when using gym repository. Warning information:
C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\gym\utils\passive_envchecker.py:233: DeprecationWarning: np.bool8 is a deprecated alias for `np.bool`. (Deprecated NumPy 1.24)
Screenshots
My code:
Warning:
After changes
I took the following steps to check the results of the change:
Uninstalled gym
pip uninstall gym
Installed gym from my forked repo with new branch
pip install git+https://github.com/sebastianbrzustowicz/gym.git@np.bool_
Hey, we just launched gymnasium, a fork of Gym by the maintainers where all maintenance and improvements will happen moving forward. Therefore, we are not updating or maintaining this repo anymore
Description
Part of code is outdated. I updated one small issue with old alias in numpy. Basically I changed "np.bool8" -> "np.bool_" in 3 places, because otherwise there is a warning when using gym repository. Warning information:
C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\gym\utils\passive_envchecker.py:233: DeprecationWarning:
np.bool8
is a deprecated alias for `np.bool`. (Deprecated NumPy 1.24)Screenshots
My code:
Warning:
After changes
I took the following steps to check the results of the change:
Uninstalled gym
pip uninstall gym
Installed gym from my forked repo with new branch
pip install git+https://github.com/sebastianbrzustowicz/gym.git@np.bool_
There is no longer any redundant warning.
Hope I helped a little bit.