2 instantiations of FeatureContributionCalculatingEstimator
Microsoft.ML.Data (2)
Transforms\ExplainabilityCatalog.cs (2)
43
=> new
FeatureContributionCalculatingEstimator
(CatalogUtils.GetEnvironment(catalog), predictionTransformer.Model, numberOfPositiveContributions, numberOfNegativeContributions, predictionTransformer.FeatureColumnName, normalize);
71
=> new
FeatureContributionCalculatingEstimator
(CatalogUtils.GetEnvironment(catalog), predictionTransformer.Model.SubModel, numberOfPositiveContributions, numberOfNegativeContributions, predictionTransformer.FeatureColumnName, normalize);
17 references to FeatureContributionCalculatingEstimator
Microsoft.ML.Data (12)
Transforms\ExplainabilityCatalog.cs (5)
12
using FeatureContributionDefaults =
FeatureContributionCalculatingEstimator
.Defaults;
20
/// Create a <see cref="
FeatureContributionCalculatingEstimator
"/> that computes model-specific contribution scores for
38
public static
FeatureContributionCalculatingEstimator
CalculateFeatureContribution(this TransformsCatalog catalog,
46
/// Create a <see cref="
FeatureContributionCalculatingEstimator
"/> that computes model-specific contribution scores for
64
public static
FeatureContributionCalculatingEstimator
CalculateFeatureContribution<TModelParameters, TCalibrator>(this TransformsCatalog catalog,
Transforms\FeatureContributionCalculationTransformer.cs (7)
29
/// <see cref="ITransformer"/> resulting from fitting a <see cref="
FeatureContributionCalculatingEstimator
"/>.
42
public int Top =
FeatureContributionCalculatingEstimator
.Defaults.NumberOfPositiveContributions;
45
public int Bottom =
FeatureContributionCalculatingEstimator
.Defaults.NumberOfNegativeContributions;
48
public bool Normalize =
FeatureContributionCalculatingEstimator
.Defaults.Normalize;
87
int numberOfPositiveContributions =
FeatureContributionCalculatingEstimator
.Defaults.NumberOfPositiveContributions,
88
int numberOfNegativeContributions =
FeatureContributionCalculatingEstimator
.Defaults.NumberOfNegativeContributions,
89
bool normalize =
FeatureContributionCalculatingEstimator
.Defaults.Normalize)
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.Tests (1)
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (1)
472
var
featureContributionCalculation = context.Transforms.CalculateFeatureContribution(linearModel, normalize: false);