ShangtongZhang / reinforcement-learning-an-introduction

Python Implementation of Reinforcement Learning: An Introduction
MIT License
13.54k stars 4.82k forks source link

(fix): ten_armed_testbed.py np.float #160

Closed iw4p closed 1 year ago

iw4p commented 1 year ago

np.float was originally deprecated in NumPy 1.20 Error:

AttributeError: module 'numpy' has no attribute 'float'. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.