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

Bug:name 'treatment' is not defined #203

Open
Simonleedata opened this issue Feb 6, 2023 · 1 comment
Open

Bug:name 'treatment' is not defined #203

Simonleedata opened this issue Feb 6, 2023 · 1 comment

Comments

@Simonleedata
Copy link

When I use the plot_uplift_preds fuction,it always reminds me : NameError: name 'treatment' is not defined. All the verision i have tried got the same result.

treatment_preds = tm.trmnt_preds_
control_preds = tm.ctrl_preds_
plot_uplift_preds(treatment_preds, control_preds);


NameError Traceback (most recent call last)
in
1 treatment_preds = tm.trmnt_preds_
2 control_preds = tm.ctrl_preds_
----> 3 plot_uplift_preds(treatment_preds, control_preds);

~/opt/anaconda3/lib/python3.8/site-packages/sklift/viz/base.py in plot_uplift_preds(trmnt_preds, ctrl_preds, log, bins)
29
30 # TODO: Add k as parameter: vertical line on plots
---> 31 check_consistent_length(trmnt_preds, ctrl_preds)
32
33 if not isinstance(bins, int) or bins <= 0:

NameError: name 'treatment' is not defined

@Simonleedata
Copy link
Author

2 months ago, the code can got a correct result, but now, it can not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant