Lean icon indicating copy to clipboard operation
Lean copied to clipboard

[Library Request] Causal AI Models

Open AlexCatarino opened this issue 1 year ago • 2 comments

Expected Behavior

Supports:

  • lingam
  • causalgraphicalmodels
  • causallearn
  • econml
  • causalml

Checklist

  • [x] I have completely filled out this template
  • [x] I have confirmed that this issue exists on the current master branch
  • [x] I have confirmed that this is not a duplicate issue by searching issues

AlexCatarino avatar Jun 16 '25 20:06 AlexCatarino

having tried installing these on a local instance, there seem to be dependencies issues with causalgraphicalmodels, causallearn and causalml, which presumably can't easily be resolved within the Quantconnect environment.

I have instead tried pyro and networkx. I am also adding tigramite to the list of requests (tigramite is already available on QC, but tigramite.independence_tests seems to be empty) I have successfully installed the following on python 3.11:

requirements.txt:

lingam>=1.9.1
tigramite>=5.2.7.0
pyro-ppl>=1.9.1
econml>=0.15.1
networkx>=3.5

these are the respective PyPi links (I'm linking to the latest versions as of writing this as they seem to work on my setup):

https://pypi.org/project/lingam/1.9.1/ https://pypi.org/project/tigramite/5.2.7.0/ https://pypi.org/project/pyro-ppl/1.9.1/ https://pypi.org/project/econml/0.15.1/ https://pypi.org/project/networkx/3.5/

LarsKlawitter avatar Jun 17 '25 14:06 LarsKlawitter

I managed to get code working with the exising tigramite installation. So upgrading tigramite would not be a priority for me right now. I still require the other packages, most importantly lingam:

https://pypi.org/project/lingam/1.9.1/ https://pypi.org/project/pyro-ppl/1.9.1/ https://pypi.org/project/econml/0.15.1/ https://pypi.org/project/networkx/3.5/

please note: I have successfully installed lingam on a local LEAN CLI setup.

LarsKlawitter avatar Aug 30 '25 07:08 LarsKlawitter