Shopify / bevel

Ordinal regression in Python
MIT License
65 stars 13 forks source link

Compatibility Issue: Deprecated 'np.int' Alias in bevel Library with NumPy 1.20 #34

Open naimab opened 8 months ago

naimab commented 8 months ago

Issue Summary

I encountered an issue while using the bevel library in conjunction with the latest version of NumPy. The library appears to have a dependency on the deprecated np.int alias, which leads to an AttributeError due to the changes introduced in NumPy 1.20.

Steps to Reproduce

  1. Installed bevel library.
  2. Attempted to use OrderedLogit class with the latest NumPy version.
  3. Encountered AttributeError: module 'numpy' has no attribute 'int'.

Expected Behavior

I expected the library to handle the latest NumPy version without issues.

Workaround

As a temporary workaround, I installed NumPy version 1.19.5 and explicitly called np.int in my code. However, this is not a sustainable solution.

Additional Information

Suggestions

It would be great if the library was updated to address the deprecated np.int alias and ensure compatibility with the latest versions of NumPy.

Thank you!