18 references to TDistPredictor
Microsoft.ML.Ensemble (5)
Trainer\Binary\EnsembleTrainer.cs (5)
85
if (models.All(m => m.Predictor is
TDistPredictor
))
86
return new EnsembleDistributionModelParameters(Host, PredictionKind, CreateModels<
TDistPredictor
>(models), Combiner);
96
if (p is
TDistPredictor
)
98
Host.CheckParam(models.All(m => m is
TDistPredictor
), nameof(models));
100
models.Select(k => new FeatureSubsetModel<float>((
TDistPredictor
)k)).ToArray(), combiner);
Microsoft.ML.StandardTrainers (13)
Standard\MulticlassClassification\OneVersusAllTrainer.cs (2)
175
var calibratedModel = transformer.Model as
TDistPredictor
;
182
calibratedModel = CalibratorUtils.GetCalibratedPredictor(Host, ch, Calibrator, transformer.Model, trainedData, Args.MaxCalibrationExamples) as
TDistPredictor
;
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (11)
129
var predModels = new
TDistPredictor
[count][];
133
predModels[i] = new
TDistPredictor
[i + 1];
157
var calibratedModel = transformer.Model as
TDistPredictor
;
159
calibratedModel = CalibratorUtils.GetCalibratedPredictor(Host, ch, Calibrator, transformer.Model, trainedData, Args.MaxCalibrationExamples) as
TDistPredictor
;
161
return new BinaryPredictionTransformer<
TDistPredictor
>(Host, calibratedModel, trainedData.Data.Schema, transformer.FeatureColumnName);
196
var predictors = new
TDistPredictor
[numClasses][];
202
predictors[i] = new
TDistPredictor
[i + 1];
269
_predictors = new
TDistPredictor
[checked(_numClasses * (_numClasses + 1) / 2)];
298
_predictors = new
TDistPredictor
[(int)count];
305
ctx.LoadModel<
TDistPredictor
, SignatureLoadModel>(Host, out _predictors[index++], string.Format(SubPredictorFmt2, i, j));
308
ctx.LoadModel<
TDistPredictor
, SignatureLoadModel>(Host, out _predictors[index++], string.Format(SubPredictorFmt, i));