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

Fix FeatureColumnName in the public API #2990

Merged
merged 1 commit into from Mar 19, 2019

Conversation

abgoswam
Copy link
Member

Fixes #2975

  • also fixes an incorrect parameter name featureColumn parameter in ExplanabilityCatalog.cs

@codecov
Copy link

codecov bot commented Mar 18, 2019

Codecov Report

Merging #2990 into master will decrease coverage by 0.01%.
The diff coverage is 82.35%.

@@            Coverage Diff             @@
##           master    #2990      +/-   ##
==========================================
- Coverage    72.3%   72.29%   -0.02%     
==========================================
  Files         796      796              
  Lines      142349   142349              
  Branches    16051    16051              
==========================================
- Hits       102923   102908      -15     
- Misses      35041    35061      +20     
+ Partials     4385     4380       -5
Flag Coverage Δ
#Debug 72.29% <82.35%> (-0.02%) ⬇️
#production 68.01% <76%> (-0.02%) ⬇️
#test 88.48% <100%> (ø) ⬆️
Impacted Files Coverage Δ
.../Microsoft.ML.Data/Prediction/CalibratorCatalog.cs 90.71% <0%> (ø) ⬆️
...rosoft.ML.Data/Transforms/ExplainabilityCatalog.cs 100% <100%> (ø) ⬆️
...est/Microsoft.ML.Tests/FeatureContributionTests.cs 98.41% <100%> (ø) ⬆️
...st/Microsoft.ML.Functional.Tests/Explainability.cs 100% <100%> (ø) ⬆️
...rd/MulticlassClassification/OneVersusAllTrainer.cs 74.87% <100%> (ø) ⬆️
...ulticlassClassification/PairwiseCouplingTrainer.cs 90.07% <100%> (ø) ⬆️
...Microsoft.ML.Data/Scorers/PredictionTransformer.cs 97.02% <68.75%> (ø) ⬆️
src/Microsoft.ML.Core/Data/ProgressReporter.cs 70.95% <0%> (-6.99%) ⬇️
src/Microsoft.ML.Transforms/Text/LdaTransform.cs 89.89% <0%> (+0.62%) ⬆️

/// <param name="numPositiveContributions">The number of positive contributions to report, sorted from highest magnitude to lowest magnitude.
/// Note that if there are fewer features with positive contributions than <paramref name="numPositiveContributions"/>, the rest will be returned as zeros.</param>
/// <param name="numNegativeContributions">The number of negative contributions to report, sorted from highest magnitude to lowest magnitude.
/// Note that if there are fewer features with negative contributions than <paramref name="numNegativeContributions"/>, the rest will be returned as zeros.</param>
/// <param name="normalize">Whether the feature contributions should be normalized to the [-1, 1] interval.</param>
public static FeatureContributionCalculatingEstimator FeatureContributionCalculation(this ModelOperationsCatalog.ExplainabilityTransforms catalog,
ICalculateFeatureContribution modelParameters,
string featureColumn = DefaultColumnNames.Features,
Copy link
Contributor

Choose a reason for hiding this comment

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

featureColumn = [](start = 19, length = 16)

#2966 rewrites these functions, so you can drop changes to ExplainabilityCatalog.

Copy link
Contributor

Choose a reason for hiding this comment

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

That would be much appreciated indeed :)

Copy link
Contributor

@rogancarr rogancarr left a comment

Choose a reason for hiding this comment

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

Approved, but please remove the changes to ExplainabilityCatalog to prevent one of you from having to fix merge errors.

@abgoswam abgoswam merged commit 02524a7 into dotnet:master Mar 19, 2019
@abgoswam abgoswam deleted the abgoswam/feature_column_name branch March 20, 2019 20:13
@dotnet dotnet locked as resolved and limited conversation to collaborators Mar 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FeatureColumn vs FeatureColumnName in Model Transformers.
3 participants