Skip to content

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

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

ogrisel
Copy link
Member

@ogrisel ogrisel commented Aug 23, 2021

Follow up to #18010

Copy link
Member

@lorentzenchr lorentzenchr left a 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.

Copy link
Member

@lorentzenchr lorentzenchr left a 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_`,)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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_`,)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
feature_names_in_ : ndarray of shape (`n_features_in_`,)
feature_names_in_ : ndarray of shape (n_features_in_,)

Copy link
Member Author

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.

@ogrisel ogrisel merged commit d61662b into scikit-learn:main Aug 25, 2021
@ogrisel ogrisel deleted the feature_names_in_-ensemble branch August 25, 2021 21:41
samronsin pushed a commit to samronsin/scikit-learn that referenced this pull request Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants