3 implementations of ICalibratorTrainer
Microsoft.ML.Data (3)
Prediction\Calibrator.cs (3)
1068
internal sealed class NaiveCalibratorTrainer :
ICalibratorTrainer
1339
internal abstract class CalibratorTrainerBase :
ICalibratorTrainer
1632
internal sealed class FixedPlattCalibratorTrainer :
ICalibratorTrainer
35 references to ICalibratorTrainer
Microsoft.ML.Data (34)
Commands\CrossValidationCommand.cs (2)
84
public IComponentFactory<
ICalibratorTrainer
> Calibrator = new PlattCalibratorTrainerFactory();
354
private readonly IComponentFactory<
ICalibratorTrainer
> _calibrator;
Commands\TrainCommand.cs (5)
78
public IComponentFactory<
ICalibratorTrainer
> Calibrator = new PlattCalibratorTrainerFactory();
247
IComponentFactory<
ICalibratorTrainer
> calibrator, int maxCalibrationExamples)
253
IComponentFactory<
ICalibratorTrainer
> calibrator, int maxCalibrationExamples, bool? cacheData, IPredictor inputPredictor = null, RoleMappedData testData = null)
259
IComponentFactory<
ICalibratorTrainer
> calibrator, int maxCalibrationExamples, bool? cacheData, IPredictor inputPredictor = null, RoleMappedData testData = null)
281
var
caliTrainer = calibrator?.CreateComponent(env);
Commands\TrainTestCommand.cs (1)
69
public IComponentFactory<
ICalibratorTrainer
> Calibrator = new PlattCalibratorTrainerFactory();
Prediction\Calibrator.cs (22)
94
internal interface ICalibratorTrainerFactory : IComponentFactory<
ICalibratorTrainer
>
123
/// access to the underlying legacy <see cref="
ICalibratorTrainer
"/> interface for those components that use
129
ICalibratorTrainer
CalibratorTrainer { get; }
138
IPredictor Calibrate(IChannel ch, IDataView data,
ICalibratorTrainer
caliTrainer, int maxRows);
844
private static bool NeedCalibration(IHostEnvironment env, IChannel ch,
ICalibratorTrainer
calibrator,
907
public static IPredictor TrainCalibratorIfNeeded(IHostEnvironment env, IChannel ch,
ICalibratorTrainer
calibrator,
933
public static IPredictor GetCalibratedPredictor(IHostEnvironment env, IChannel ch,
ICalibratorTrainer
caliTrainer,
940
public static ICalibrator TrainCalibrator(IHostEnvironment env, IChannel ch,
ICalibratorTrainer
caliTrainer, IDataView scored, string labelColumn, string scoreColumn, string weightColumn = null, int maxRows = _maxCalibrationExamples)
1013
public static ICalibrator TrainCalibrator(IHostEnvironment env, IChannel ch,
ICalibratorTrainer
caliTrainer, IPredictor predictor, RoleMappedData data, int maxRows = _maxCalibrationExamples)
1056
public
ICalibratorTrainer
CreateComponent(IHostEnvironment env)
1103
bool
ICalibratorTrainer
.NeedsTraining => true;
1119
ICalibrator
ICalibratorTrainer
.FinishTraining(IChannel ch)
1437
bool
ICalibratorTrainer
.NeedsTraining => true;
1442
bool
ICalibratorTrainer
.ProcessTrainingExample(float output, bool labelIs1, float weight)
1450
ICalibrator
ICalibratorTrainer
.FinishTraining(IChannel ch)
1465
public
ICalibratorTrainer
CreateComponent(IHostEnvironment env)
1643
public
ICalibratorTrainer
CreateComponent(IHostEnvironment env)
1665
bool
ICalibratorTrainer
.NeedsTraining => false;
1667
bool
ICalibratorTrainer
.ProcessTrainingExample(float output, bool labelIs1, float weight) => false;
1669
ICalibrator
ICalibratorTrainer
.FinishTraining(IChannel ch) => new PlattCalibrator(_host, _slope, _offset);
1840
public
ICalibratorTrainer
CreateComponent(IHostEnvironment env)
2206
ICalibratorTrainer
calibratorTrainer)
Prediction\CalibratorCatalog.cs (3)
49
private readonly
ICalibratorTrainer
_calibratorTrainer;
50
ICalibratorTrainer
IHaveCalibratorTrainer.CalibratorTrainer => _calibratorTrainer;
63
ICalibratorTrainer
calibratorTrainer, string labelColumn, string scoreColumn, string weightColumn)
Transforms\TrainAndScoreTransformer.cs (1)
153
public IComponentFactory<
ICalibratorTrainer
> Calibrator = new PlattCalibratorTrainerFactory();
Microsoft.ML.StandardTrainers (1)
StandardTrainersCatalog.cs (1)
709
/// estimator the internal <see cref="
ICalibratorTrainer
"/> object. Note that this should be a temporary measure,