Open codewithawr opened 9 months ago
hear what i am doing for it to work
# Reassigning np.int to np.int64
np.int = np.int64
# Reassigning np.float to np.float64
np.float = np.float64
# Reassigning np.bool to np.bool_
np.bool = np.bool_
it a temporary solution might help someone
There is an open PR fixing this. Basically just change all np.type
to np.type_
It seems like no one is approving PRs though.
Someone should indeed updated this package so it won't clash with changes to numpy.
I encountered an error while using BorutaPy with a RandomForestClassifier model. The error message states "AttributeError: module 'numpy' has no attribute 'bool'." The error suggests that BorutaPy is trying to use numpy.bool, which was a deprecated alias for the built-in bool. To avoid this error in existing code, we should use bool by itself. If the specific intention was to use the numpy scalar type, we should use numpy.bool_.
int
values numpy wantsnumpy.int64
ornumpy.int32
Steps to Reproduce:
Bach
Code
Behavior:
Error
Additional Information:
Python Version: 3.9.12 Operating System: Windows