py-why / causal-learn

Causal Discovery in Python. It also includes (conditional) independence tests and score functions.
https://causal-learn.readthedocs.io/en/latest/
MIT License
1.13k stars 186 forks source link

numpy version #177

Open quanganhct opened 6 months ago

quanganhct commented 6 months ago

In KCI.py

num_eig = np.int(np.floor(T / 2)) raised Attribute Error

AttributeError: module 'numpy' has no attribute 'int'. np.intwas a deprecated alias for the builtinint. To avoid this error in existing code, useintby itself. Doing this will not modify any behavior and is safe. When replacingnp.int, you may wish to use e.g.np.int64ornp.int32to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:

kunwuz commented 5 months ago

Hi, thanks for reporting. It should have been fixed in PR #156. Could you please try using the latest version and see if that issue remains?