RGF-team / rgf

Home repository for the Regularized Greedy Forest (RGF) library. It includes original implementation from the paper and multithreaded one written in C++, along with various language-specific wrappers.
378 stars 58 forks source link

fix numpy warning about np.float #334

Closed StrikerRUS closed 3 years ago

StrikerRUS commented 3 years ago

Fix the following warning:

../../../../miniconda/envs/test-env/lib/python3.9/site-packages/rgf/utils.py:26
  /Users/runner/miniconda/envs/test-env/lib/python3.9/site-packages/rgf/utils.py:26: 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
    FLOATS = (float, np.float, np.float16, np.float32, np.float64, np.double)