Rambatino / CHAID

A python implementation of the common CHAID algorithm
Apache License 2.0
149 stars 50 forks source link

np.float is deprecated #133

Closed kenny-devarapalli closed 11 months ago

kenny-devarapalli commented 1 year ago

AttributeError: module 'numpy' has no attribute 'float'. np.float was a deprecated alias for the builtin 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.

Location of Error File ~/.local/lib/python3.8/site-packages/CHAID/column.py:131, in NominalColumn.substitute_values(self, vect) 129 np.place(arr, arr==value, new_id) 130 self.metadata[new_id] = value --> 131 arr = arr.astype(np.float)

Rambatino commented 11 months ago

This has been fixed and will be released in the new version