replace np.float with np.floating in type check
`np.float` was deprecated in Numpy 1.20: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Please register or sign in to comment
`np.float` was deprecated in Numpy 1.20: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations