Open smarianimore opened 1 month ago
Hi, if possible, could you please provide a minimal example of code and data to reproduce this error? I haven't got this on my end.
Sorry for the latency, here it is a gist with a MWE and example dataset that generates the error: https://gist.github.com/smarianimore/3e78a8ddc5d642b0432c324d495ede22
FYI, in the MWE I'm using causallearn.search.ConstraintBased.PC
, but the same error happens with fci.
As an aside, the same MWE but using ges or lingam gives a different error: AttributeError:
np.matwas removed in the NumPy 2.0 release. Use
np.asmatrixinstead.
(I have numpy 2.1.1 installed)
Hello, I'm trying to use causal-learn (pc and fci at the moment) but I'm stuck with input data errors.
My dataframe has no nans nor infs, as checked with both pandas and numpy, but running either algorithm reports error
TypeError: ufunc 'isnan' (or 'isinf') not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
The full stack trace is as follows (where data types can also be seen):