-
Notifications
You must be signed in to change notification settings - Fork 335
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
KeyError when using decision_boundaries function #238
Comments
Can you send data + small program? I can debug. |
Is it ok I send those to your email address on GitHub? Or is there a better way ? |
You can probably attach here if they’re not too big but my email is OK as well |
I tried this on Jupyter Notebook.
Thanks for helping Professor! |
@parrt just a hint, I made a little debug on the code and the error is generated because:
|
I think we make an assumption that class values all start from zero, right? |
@parrt I guess yes, I am not very familiar with that part of implementation. |
OK @0ptimista, the issue is that class labels have to start from zero but the labels in this case are [1,2]. It must be very common to keep everything indexed from zero so for now I'm going to simply add code indicate this is an error. |
You can probably do something like |
I am adding functionality to emit an error:
|
… n classes. Signed-off-by: Terence Parr <parrt@antlr.org>
I have a trained DecisionTreeClassifier model with 2 features. And it is good when using dtreeviz.model() to observe the model.
But when I try decision_boundaries() It's throwing a KeyError and draw only decision boundaries without data points. I want thoses points:
The text was updated successfully, but these errors were encountered: