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