-
Notifications
You must be signed in to change notification settings - Fork 780
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
BaseXClassifier and BaseRClassifier failes #180
Comments
Hi @Jami1141, thanks for bringing this up. These are the current arguments for the BaseXClassifier:
I realize this is a little confusing (due to all the optional flags), but there's a little note that says "Even if specified, the user must still input either the outcome learner or the effect learner pair." At the moment the best way to use the BaseXClassifier is to ignore (cc @jeongyoonlee) Moving forward though, I think we should modify the args to provide |
@yungmsh agreed. For all classifiers, let's remove |
Yep will add it to my list on the next push. |
I have a dataframe including some features, a multiple treatment (0,1,2) and a binary outcome (0,1).
When I try:
learner = BaseSClassifier(XGBClassifier(), control_name='control')
learner.fit(X=X, treatment=treatment, y=y)
cate = learner.predict(X=X, treatment=treatment, y=y)
And,
learner = BaseTClassifier(XGBClassifier(), control_name='control')
learner.fit(X=X, treatment=treatment, y=y)
cate = learner.predict(X=X, treatment=treatment, y=y)
For both I have cate values but for :
learner = BaseXClassifier(XGBClassifier(), control_name='control')
learner.fit(X=X, treatment=treatment, y=y)
cate = learner.predict(X=X, treatment=treatment, y=y)
And,
learner = BaseRClassifier(XGBClassifier(), control_name='control')
learner.fit(X=X, treatment=treatment, y=y)
cate = learner.predict(X=X, treatment=treatment, y=y)
I have following error: ValueError: Either the outcome learner or the effect learner pair must be specified.
The text was updated successfully, but these errors were encountered: