kLabUM / rrcf

🌲 Implementation of the Robust Random Cut Forest algorithm for anomaly detection on streams
https://klabum.github.io/rrcf/
MIT License
495 stars 112 forks source link

AttributeError: module 'numpy' has no attribute 'int'. #98

Closed Xiaoshu-Zhao closed 7 months ago

Xiaoshu-Zhao commented 1 year ago

When we define RCTree, we use the follwing code in __init__

    else:
        n, d = X.shape
        N = np.ones(n, dtype=np.int)
        I = None

However, np.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself. Please fix it.

mdbartos commented 1 year ago

This will be addressed in #95