causalml icon indicating copy to clipboard operation
causalml copied to clipboard

No module named 'causalml.inference.tree.uplift'

Open xiongruixu opened this issue 2 years ago • 0 comments

Following the document (https://github.com/uber/causalml/blob/master/README.md), I've installed the causalml package with conda, and can successfully 'import caucalml' in python. But when I tried to run the code from causalml.dataset import synthetic_data it says Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/john_mbp/Work/2022010203/causalml/causalml/dataset/__init__.py", line 9, in <module> from .synthetic import get_synthetic_preds, get_synthetic_preds_holdout File "/Users/john_mbp/Work/2022010203/causalml/causalml/dataset/synthetic.py", line 21, in <module> from causalml.inference.tree import CausalTreeRegressor File "/Users/john_mbp/Work/2022010203/causalml/causalml/inference/tree/__init__.py", line 1, in <module> from .uplift import DecisionTree, UpliftTreeClassifier, UpliftRandomForestClassifier ModuleNotFoundError: No module named 'causalml.inference.tree.uplift'

OS: macOS 11.6 python version: python 3.7

xiongruixu avatar Mar 18 '22 03:03 xiongruixu