Closed Vihagle closed 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())
Please make sure that this is a bug.
System information
pip list
):Describe the current behavior
t = TLearner(model=xgb.XGBRegressor())
why = Why(estimator = t,random_state=2022)
why.fit(data, outcome, treatment = treatment)
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.