hep_ml/commonutils.py:281: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`.
To silence this warning, 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.
Deprecated in NumPy 1.20; for more details and guidance:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
sample_weight = numpy.array(sample_weight, dtype=numpy.float)
Description
In Numpy 1.20,
numpy.float
is deprecated, and should be replaced withfloat
:Numpy 1.20.0 Deprecations
Currently, this warning is being thrown: