causal-learn icon indicating copy to clipboard operation
causal-learn copied to clipboard

numpy version

Open quanganhct opened this issue 1 year ago • 1 comments

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, use intby 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:

quanganhct avatar Apr 02 '24 18:04 quanganhct

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?

kunwuz avatar Apr 08 '24 01:04 kunwuz