-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
FIX accept array-like in feature_names for plot_tree
#27292
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
Conversation
|
I don't know what we usually do in terms of adding a no-regression test for parameter validation bugs. Maybe we don't need one. What do others think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After removing list this looks good to me.
|
Thanks for the PR @rprkh. The docstring also needs to be updated. Please also add a entry in the what's new (1.3.1) |
|
Added the changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @rprkh
…arn#27292) Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
…arn#27292) Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Reference Issues/PRs
Partially fixes #27271
What does this implement/fix? Explain your changes.
The
feature_namesparameter now accepts an array.Any other comments?
The code above will execute without any errors