Skip to content

Compatibility error with numpy>=2 #208

@jhn-nt

Description

@jhn-nt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions