2 implementations of IFeatureContributionMapper
Microsoft.ML.Data (2)
Prediction\Calibrator.cs (2)
290IValueMapperDist, IFeatureContributionMapper, ICalculateFeatureContribution, 641IBindableCanSavePfa, IBindableCanSaveOnnx, IFeatureContributionMapper
19 references to IFeatureContributionMapper
Microsoft.ML.Data (19)
Prediction\Calibrator.cs (8)
296private readonly IFeatureContributionMapper _featureContribution; 316_featureContribution = predictor as IFeatureContributionMapper; 338ValueMapper<TSrc, VBuffer<float>> IFeatureContributionMapper.GetFeatureContributionMapper<TSrc, TDst>(int top, int bottom, bool normalize) 729private readonly IFeatureContributionMapper _featureContribution; 756_featureContribution = SubModel as IFeatureContributionMapper; 763_featureContribution = SubModel as IFeatureContributionMapper; 807ValueMapper<TSrc, VBuffer<float>> IFeatureContributionMapper.GetFeatureContributionMapper<TSrc, TDst>(int top, int bottom, bool normalize) 810Host.Check(_featureContribution != null, "Predictor does not implement " + nameof(IFeatureContributionMapper));
Prediction\ICalculateFeatureContribution.cs (2)
40internal IFeatureContributionMapper ContributionMapper { get; } 41internal FeatureContributionCalculator(IFeatureContributionMapper contributionMapper) => ContributionMapper = contributionMapper;
Scorers\FeatureContributionCalculation.cs (6)
79var pred = predictor as IFeatureContributionMapper; 102public readonly IFeatureContributionMapper Predictor; 119public BindableMapper(IHostEnvironment env, IFeatureContributionMapper predictor, int topContributionsCount, int bottomContributionsCount, bool normalize, bool stringify) 152ctx.LoadModel<IFeatureContributionMapper, SignatureLoadModel>(env, out Predictor, ModelFileUtils.DirPredictor); 282IFeatureContributionMapper predictor)
Transforms\FeatureContributionCalculationTransformer.cs (3)
60private readonly IFeatureContributionMapper _predictor; 101_predictor = modelParameters as IFeatureContributionMapper; 121ctx.LoadModel<IFeatureContributionMapper, SignatureLoadModel>(env, out _predictor, ModelFileUtils.DirPredictor);