Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility error with numpy>=2 #208

Closed
jhn-nt opened this issue Nov 27, 2024 · 1 comment
Closed

Compatibility error with numpy>=2 #208

jhn-nt opened this issue Nov 27, 2024 · 1 comment

Comments

@jhn-nt
Copy link

jhn-nt commented Nov 27, 2024

Hi all,

I am new to causal-learn and I have now started to testing it out.

However, running:

from causallearn.search.ScoreBased.GES import ges

Returns

AttributeError: `np.mat` was removed in the NumPy 2.0 release. Use `np.asmatrix` instead.

Which is self-explanatroy,but my question is, since I need numpy>2.0: are there any plans to make the library compatible with newer versions of numpy?

Best,
Giovanni

@kunwuz
Copy link
Collaborator

kunwuz commented Dec 23, 2024

Hi, I believe this has been updated in #195. Could you please try using the current version on GitHub to see if the issue persists? We will make the updates available on Pypi in our next release.

@kunwuz kunwuz closed this as completed Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants