DataCanvasIO / YLearn

YLearn, a pun of "learn why", is a python package for causal inference
https://ylearn.readthedocs.io
Apache License 2.0
391 stars 75 forks source link

Problem about build a class "Why" #30

Closed Vihagle closed 2 years ago

Vihagle commented 2 years ago

Please make sure that this is a bug.

System information

Describe the current behavior

Describe the expected behavior

Standalone code to reproduce the issue Provide a reproducible test case that is the bare minimum necessary to generate the problem. If possible, please share a link to Jupyter notebook.

Are you willing to submit PR?(Yes/No)

Other info / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

lixfz commented 2 years ago

This issue was fixed with commit https://github.com/DataCanvasIO/YLearn/commit/e1d47006c56daff455bae5e58f8636584f804e22 .

As a workaround before we release next version, create Why instance with code below:

why=Why(estimator='meta_leaner',
    estimator_options=dict(leaner='t',model=xgb.XGBRegressor())