-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
ENH feature_names_in_ for sklearn.ensemble #20818
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
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.
Thanks for working on this one. I've only one question. Maybe, I just need a better understanding.
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
@@ -1265,6 +1265,11 @@ class labels (multi-output problem). | |||
|
|||
.. versionadded:: 0.24 | |||
|
|||
feature_names_in_ : ndarray of shape (`n_features_in_`,) |
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.
feature_names_in_ : ndarray of shape (`n_features_in_`,) | |
feature_names_in_ : ndarray of shape (n_features_in_,) |
We also do X : array-like of shape (n_samples, n_features)
without ticks.
@@ -1590,6 +1595,11 @@ class RandomForestRegressor(ForestRegressor): | |||
|
|||
.. versionadded:: 0.24 | |||
|
|||
feature_names_in_ : ndarray of shape (`n_features_in_`,) |
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.
feature_names_in_ : ndarray of shape (`n_features_in_`,) | |
feature_names_in_ : ndarray of shape (n_features_in_,) |
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.
As explained in another PR, this would break sphinx rendering because it would treat those as a link to a reference.
Follow up to #18010