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)
12using FeatureContributionDefaults = FeatureContributionCalculatingEstimator.Defaults; 20/// Create a <see cref="FeatureContributionCalculatingEstimator"/> that computes model-specific contribution scores for 38public static FeatureContributionCalculatingEstimator CalculateFeatureContribution(this TransformsCatalog catalog, 46/// Create a <see cref="FeatureContributionCalculatingEstimator"/> that computes model-specific contribution scores for 64public static FeatureContributionCalculatingEstimator CalculateFeatureContribution<TModelParameters, TCalibrator>(this TransformsCatalog catalog,
Transforms\FeatureContributionCalculationTransformer.cs (7)
29/// <see cref="ITransformer"/> resulting from fitting a <see cref="FeatureContributionCalculatingEstimator"/>. 42public int Top = FeatureContributionCalculatingEstimator.Defaults.NumberOfPositiveContributions; 45public int Bottom = FeatureContributionCalculatingEstimator.Defaults.NumberOfNegativeContributions; 48public bool Normalize = FeatureContributionCalculatingEstimator.Defaults.Normalize; 87int numberOfPositiveContributions = FeatureContributionCalculatingEstimator.Defaults.NumberOfPositiveContributions, 88int numberOfNegativeContributions = FeatureContributionCalculatingEstimator.Defaults.NumberOfNegativeContributions, 89bool normalize = FeatureContributionCalculatingEstimator.Defaults.Normalize)
Microsoft.ML.IntegrationTests (4)
Explainability.cs (4)
183var featureContributions = mlContext.Transforms.CalculateFeatureContribution(predictor, normalize: false); 220var featureContributions = mlContext.Transforms.CalculateFeatureContribution(predictor, normalize: false); 257var featureContributions = mlContext.Transforms.CalculateFeatureContribution(predictor, normalize: false); 295var featureContributions = mlContext.Transforms.CalculateFeatureContribution(predictor, normalize: false);
Microsoft.ML.Tests (1)
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (1)
472var featureContributionCalculation = context.Transforms.CalculateFeatureContribution(linearModel, normalize: false);