-
Notifications
You must be signed in to change notification settings - Fork 68
Added a utility method to the Learner class returning feature names #715
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
|
hold off on review while I add tests |
Codecov ReportBase: 96.90% // Head: 96.90% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #715 +/- ##
=======================================
Coverage 96.90% 96.90%
=======================================
Files 63 63
Lines 9271 9271
=======================================
Hits 8984 8984
Misses 287 287 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
desilinguist
left a comment
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.
Looks pretty good but I have some suggestions - some mostly cosmetic but one to actually increase the test coverage check which is failing right now.
remo-help
left a comment
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.
addressed PR comments
Added a utility method to the Learner class, allowing it to return an array of feature names after the selector step.
c35ce14 to
f3d5658
Compare
This PR adds a simple utility method to the Learner class, allowing it to return the feature names used at the estimator step as a 1-D array.
Learners with a selector potentially have a smaller feature name list than is stored in the feature_vectorizer. This method allows for easy access of the actual feature names of features used, even if the selector has removed specific features.