Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #164

Closed
ZSCDumin opened this issue Apr 15, 2020 · 4 comments · Fixed by #170
Closed

Error #164

ZSCDumin opened this issue Apr 15, 2020 · 4 comments · Fixed by #170
Assignees
Labels
bug Something isn't working

Comments

@ZSCDumin
Copy link

image

learner_x = BaseRRegressor(XGBRegressor(), control_name='control')
learner_x.fit(X=x_train, treatment=treatment_train, y=y_train)
cate_x_no_p = learner_x.predict(X=x_test)

Occur error when using BaseRRegressor, how to handle this problem?

@ZSCDumin ZSCDumin added the bug Something isn't working label Apr 15, 2020
@ThatShelbs
Copy link

Having the same issue. Can run the other Base Regressors just fine but when I run BaseRRegressor I get the same error.

@ppstacy
Copy link
Collaborator

ppstacy commented Apr 29, 2020

Hi @ZSCDumin and @ThatShelbs, Thanks for reporting this!

Do you mind provide the full logs for this error? It's a bit difficult now to find out where cause this issue. From the code it didn't provide the propensity score input, so R Learner will automatically run a propensity model to generate the propensity scores. It looks like this error coming from here.

Could you provide the data which can reproduce this error that I can take a quick look? Thanks!

@ThatShelbs
Copy link

ThatShelbs commented Apr 29, 2020

causalml_baserlearner_issue

The notebook of interest is basic_causalml.ipynb. Included the notebook that generates synthetic data just in case it is needed.

@jeongyoonlee
Copy link
Collaborator

Thanks, @ThatShelbs for sharing the notebook. The issue has been fixed in PR #170 and working notebook is available in gist. A new version with the fix will be published to PyPI in a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants