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.04k stars 174 forks source link

Invalid trend option for vector_ar fit() function #147

Closed ishwargov closed 8 months ago

ishwargov commented 8 months ago

https://github.com/py-why/causal-learn/blob/0901441d4d376356400da7a3a0e4bc2f5ee392df/causallearn/search/FCMBased/lingam/var_lingam.py#L263C38-L263C38

Only valid options are {“c”, “ct”, “ctt”, “n”} , https://www.statsmodels.org/dev/generated/statsmodels.tsa.vector_ar.var_model.VAR.fit.html#statsmodels.tsa.vector_ar.var_model.VAR.fit

Please take a look into it.

kunwuz commented 8 months ago

Thanks so much, it has been updated. The reason is a previous update on statsmodel: https://github.com/statsmodels/statsmodels/pull/7593.