I opened this issue to maybe correct a warning that generate a lot of warning messages when running the fit_predict method of KMeansConstrained :
"""
k_means_constrained/sklearn_import/metrics/pairwise.py:575: 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
dtype = np.float
"""
In a nutshell, it suggest to replace np.float and np.float32 by float in pairwise.py :)
Hello,
Amazing repo and very useful algorithm !
I opened this issue to maybe correct a warning that generate a lot of warning messages when running the fit_predict method of KMeansConstrained :
""" k_means_constrained/sklearn_import/metrics/pairwise.py:575: DeprecationWarning:
np.float
is a deprecated alias for the builtinfloat
. To silence this warning, usefloat
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64
here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations dtype = np.float """In a nutshell, it suggest to replace np.float and np.float32 by float in pairwise.py :)