Skip to content
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

add feature_importances stub #148

Merged
merged 5 commits into from
Jul 7, 2022
Merged

add feature_importances stub #148

merged 5 commits into from
Jul 7, 2022

Conversation

OkonSamuel
Copy link
Member

@OkonSamuel OkonSamuel commented Jun 29, 2022

This PR adds feature_importances stub. Models which overload this method must also overload the reports_feature_importances` trait.

Requires:

Note
feature_importances stub isn't exported in line with the goals set in this issue

@OkonSamuel OkonSamuel requested a review from ablaom June 29, 2022 12:58
@OkonSamuel OkonSamuel changed the title add intrinsic_importances stub add feature_importances stub Jul 7, 2022
Copy link
Member

@ablaom ablaom left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks @OkonSamuel

@codecov-commenter
Copy link

codecov-commenter commented Jul 7, 2022

Codecov Report

Merging #148 (ce672b9) into dev (280b1a9) will increase coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              dev     #148      +/-   ##
==========================================
+ Coverage   88.95%   88.99%   +0.03%     
==========================================
  Files           8        8              
  Lines         326      327       +1     
==========================================
+ Hits          290      291       +1     
  Misses         36       36              
Impacted Files Coverage Δ
src/MLJModelInterface.jl 100.00% <ø> (ø)
src/model_api.jl 70.00% <ø> (ø)
src/data_utils.jl 79.16% <0.00%> (ø)
src/metadata_utils.jl 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 280b1a9...ce672b9. Read the comment docs.

@ablaom ablaom merged commit 5dd0ef9 into dev Jul 7, 2022
@ablaom ablaom mentioned this pull request Jul 7, 2022
ablaom added a commit that referenced this pull request Jul 7, 2022
* add `feature_importances` stub  (#148)

* add intrinsic_importances stub and set fallback to
othing.

* fix error in intrinsic_importances docstring.

* rename intrinsic_importances method to eature_importances.

* remove fallback for eature_importances.

* Update src/model_api.jl

Co-authored-by: Anthony Blaom, PhD <[email protected]>

* bump 1.5

Co-authored-by: Okon Samuel <[email protected]>
ablaom added a commit that referenced this pull request Jul 8, 2022
* add `feature_importances` stub  (#148)

* add intrinsic_importances stub and set fallback to
othing.

* fix error in intrinsic_importances docstring.

* rename intrinsic_importances method to eature_importances.

* remove fallback for eature_importances.

* Update src/model_api.jl

Co-authored-by: Anthony Blaom, PhD <[email protected]>

* bump 1.5

* Update `metadata_model` to include traits for feature importances and training losses (#155)

* + supports_training_losses,reports_feature_importances to model_metadata

* bump 1.5.1

* bump StatisticalTraits = "3.1"

Co-authored-by: Okon Samuel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants