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