16 references to CalculateFeatureContribution
Microsoft.ML.Data (1)
Transforms\FeatureContributionCalculationTransformer.cs (1)
295
/// <seealso cref="ExplainabilityCatalog.
CalculateFeatureContribution
(TransformsCatalog, ISingleFeaturePredictionTransformer{ICalculateFeatureContribution}, int, int, bool)"/>
Microsoft.ML.IntegrationTests (4)
Explainability.cs (4)
183
var featureContributions = mlContext.Transforms.
CalculateFeatureContribution
(predictor, normalize: false);
220
var featureContributions = mlContext.Transforms.
CalculateFeatureContribution
(predictor, normalize: false);
257
var featureContributions = mlContext.Transforms.
CalculateFeatureContribution
(predictor, normalize: false);
295
var featureContributions = mlContext.Transforms.
CalculateFeatureContribution
(predictor, normalize: false);
Microsoft.ML.Samples (1)
Dynamic\Transforms\CalculateFeatureContribution.cs (1)
53
.
CalculateFeatureContribution
(linearModel, normalize: false).Fit(
Microsoft.ML.Tests (10)
FeatureContributionTests.cs (9)
33
var estPipe = ML.Transforms.
CalculateFeatureContribution
(model)
34
.Append(ML.Transforms.
CalculateFeatureContribution
(model, normalize: false))
35
.Append(ML.Transforms.
CalculateFeatureContribution
(model, numberOfPositiveContributions: 0))
36
.Append(ML.Transforms.
CalculateFeatureContribution
(model, numberOfNegativeContributions: 0))
37
.Append(ML.Transforms.
CalculateFeatureContribution
(model, numberOfPositiveContributions: 0, numberOfNegativeContributions: 0));
201
var est = ML.Transforms.
CalculateFeatureContribution
(model, numberOfPositiveContributions: 3, numberOfNegativeContributions: 0)
202
.Append(ML.Transforms.
CalculateFeatureContribution
(model, numberOfPositiveContributions: 0, numberOfNegativeContributions: 3))
203
.Append(ML.Transforms.
CalculateFeatureContribution
(model, numberOfPositiveContributions: 1, numberOfNegativeContributions: 1))
204
.Append(ML.Transforms.
CalculateFeatureContribution
(model, numberOfPositiveContributions: 1, numberOfNegativeContributions: 1, normalize: false));
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (1)
472
var featureContributionCalculation = context.Transforms.
CalculateFeatureContribution
(linearModel, normalize: false);