3 implementations of ICalibrator
Microsoft.ML.Data (3)
Prediction\Calibrator.cs (3)
1166public sealed class NaiveCalibrator : ICalibrator, ICanSaveInBinaryFormat, ISingleCanSaveOnnx 1676public sealed class PlattCalibrator : ICalibrator, IParameterMixer, ICanSaveModel, ISingleCanSavePfa, ISingleCanSaveOnnx 1932public sealed class IsotonicCalibrator : ICalibrator, ICanSaveInBinaryFormat
74 references to ICalibrator
Microsoft.ML.Data (42)
Dirty\PredictorInterfaces.cs (1)
90void SaveAsIni(TextWriter writer, RoleMappedSchema schema, ICalibrator calibrator = null);
Model\Onnx\ICanSaveOnnx.cs (1)
72/// <see cref="ICalibrator"/> instances.
Model\Pfa\ICanSavePfa.cs (1)
76/// <see cref="ICalibrator"/> instances.
Prediction\Calibrator.cs (32)
62[assembly: LoadableClass(typeof(CalibratedModelParametersBase), typeof(ValueMapperCalibratedModelParameters<IPredictorProducing<float>, ICalibrator>), null, typeof(SignatureLoadModel), 64ValueMapperCalibratedModelParameters<IPredictorProducing<float>, ICalibrator>.LoaderSignature, "BulkCaliPredExec")] 66[assembly: LoadableClass(typeof(CalibratedModelParametersBase), typeof(FeatureWeightsCalibratedModelParameters<IPredictorProducing<float>, ICalibrator>), null, typeof(SignatureLoadModel), 68FeatureWeightsCalibratedModelParameters<IPredictorWithFeatureWeights<float>, ICalibrator>.LoaderSignature)] 70[assembly: LoadableClass(typeof(CalibratedModelParametersBase), typeof(ParameterMixingCalibratedModelParameters<IPredictorProducing<float>, ICalibrator>), null, typeof(SignatureLoadModel), 72ParameterMixingCalibratedModelParameters<IPredictorWithFeatureWeights<float>, ICalibrator>.LoaderSignature)] 74[assembly: LoadableClass(typeof(CalibratedModelParametersBase), typeof(SchemaBindableCalibratedModelParameters<IPredictorProducing<float>, ICalibrator>), null, typeof(SignatureLoadModel), 75"Schema Bindable Calibrated Predictor", SchemaBindableCalibratedModelParameters<IPredictorProducing<float>, ICalibrator>.LoaderSignature)] 118ICalibrator FinishTraining(IChannel ch); 152ICalibrator WeaklyTypedCalibrator { get; } 161public ICalibrator Calibrator { get; } 163private protected CalibratedModelParametersBase(object subModel, ICalibrator calibrator) 190where TCalibrator : class, ICalibrator 207ICalibrator IWeaklyTypedCalibratedModelParameters.WeaklyTypedCalibrator => Calibrator; 225void ICanSaveInIniFormat.SaveAsIni(TextWriter writer, RoleMappedSchema schema, ICalibrator calibrator) 293where TCalibrator : class, ICalibrator 404where TCalibrator : class, ICalibrator 476where TCalibrator : class, ICalibrator 552where TCalibrator : class, ICalibrator 643where TCalibrator : class, ICalibrator 817internal static object Create(IHostEnvironment env, ModelLoadContext ctx, object predictor, ICalibrator calibrator, Type calibratedModelParametersType) 936var trainedCalibrator = TrainCalibrator(env, ch, caliTrainer, predictor, data, maxRows); 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) 1029where TCalibrator : class, ICalibrator 1119ICalibrator ICalibratorTrainer.FinishTraining(IChannel ch) 1450ICalibrator ICalibratorTrainer.FinishTraining(IChannel ch) 1453var calibrator = CreateCalibrator(ch); 1458public abstract ICalibrator CreateCalibrator(IChannel ch); 1484public override ICalibrator CreateCalibrator(IChannel ch) 1669ICalibrator ICalibratorTrainer.FinishTraining(IChannel ch) => new PlattCalibrator(_host, _slope, _offset); 1880public override ICalibrator CreateCalibrator(IChannel ch)
Prediction\CalibratorCatalog.cs (4)
45where TICalibrator : class, ICalibrator 164/// <typeparam name="TICalibrator">The <see cref="ICalibrator"/> used to transform the data.</typeparam> 166where TICalibrator : class, ICalibrator 240where TCalibrator : class, ICalibrator
Prediction\IPredictionTransformer.cs (2)
15/// <typeparam name="TModel">The <see cref="IPredictor"/> or <see cref="ICalibrator"/> used for the data transformation.</typeparam> 27/// <typeparam name="TModel">The <see cref="IPredictor"/> or <see cref="ICalibrator"/> used for the data transformation.</typeparam>
Transforms\ExplainabilityCatalog.cs (1)
70where TCalibrator : class, ICalibrator
Microsoft.ML.Ensemble (1)
PipelineEnsemble.cs (1)
372var calibrator = caliTrainer.FinishTraining(ch);
Microsoft.ML.FastTree (14)
FastTree.cs (1)
2981void ICanSaveInIniFormat.SaveAsIni(TextWriter writer, RoleMappedSchema schema, ICalibrator calibrator)
FastTreeClassification.cs (3)
93ICalibrator calibrator; 94ctx.LoadModelOrNull<ICalibrator, SignatureLoadModel>(env, out calibrator, @"Calibrator"); 97return new SchemaBindableCalibratedModelParameters<FastTreeBinaryModelParameters, ICalibrator>(env, predictor, calibrator);
GamClassification.cs (3)
241ICalibrator calibrator; 242ctx.LoadModelOrNull<ICalibrator, SignatureLoadModel>(env, out calibrator, @"Calibrator"); 245return new SchemaBindableCalibratedModelParameters<GamBinaryModelParameters, ICalibrator>(env, predictor, calibrator);
GamModelParameters.cs (1)
436void ICanSaveInIniFormat.SaveAsIni(TextWriter writer, RoleMappedSchema schema, ICalibrator calibrator)
RandomForestClassification.cs (3)
112ICalibrator calibrator; 113ctx.LoadModelOrNull<ICalibrator, SignatureLoadModel>(env, out calibrator, @"Calibrator"); 116return new SchemaBindableCalibratedModelParameters<FastForestBinaryModelParameters, ICalibrator>(env, predictor, calibrator);
TreeEnsembleFeaturizer.cs (1)
720if (predictor is CalibratedModelParametersBase<IPredictorProducing<float>, Calibrators.ICalibrator> calibratedModelParametersBase)
Utils\FastTreeIniFileUtils.cs (2)
16IHost host, InternalTreeEnsemble ensemble, RoleMappedSchema schema, ICalibrator calibrator, 31private static string AddCalibrationToIni(IHost host, string ini, ICalibrator calibrator)
Microsoft.ML.LightGbm (3)
LightGbmBinaryTrainer.cs (3)
81ICalibrator calibrator; 82ctx.LoadModelOrNull<ICalibrator, SignatureLoadModel>(env, out calibrator, @"Calibrator"); 85return new ValueMapperCalibratedModelParameters<LightGbmBinaryModelParameters, ICalibrator>(env, predictor, calibrator);
Microsoft.ML.StandardTrainers (13)
Standard\LinearModelParameters.cs (8)
393private protected abstract void SaveAsIni(TextWriter writer, RoleMappedSchema schema, ICalibrator calibrator = null); 395void ICanSaveInIniFormat.SaveAsIni(TextWriter writer, RoleMappedSchema schema, ICalibrator calibrator) => SaveAsIni(writer, schema, calibrator); 487ICalibrator calibrator; 488ctx.LoadModelOrNull<ICalibrator, SignatureLoadModel>(env, out calibrator, @"Calibrator"); 492return new ParameterMixingCalibratedModelParameters<LinearBinaryModelParameters, ICalibrator>(env, predictor, calibrator); 493return new SchemaBindableCalibratedModelParameters<LinearBinaryModelParameters, ICalibrator>(env, predictor, calibrator); 557private protected override void SaveAsIni(TextWriter writer, RoleMappedSchema schema, ICalibrator calibrator = null) 591private protected override void SaveAsIni(TextWriter writer, RoleMappedSchema schema, ICalibrator calibrator)
Standard\MulticlassClassification\OneVersusAllTrainer.cs (1)
86/// <seealso cref="StandardTrainersCatalog.OneVersusAll{TModel}(MulticlassClassificationCatalog.MulticlassClassificationTrainers, ITrainerEstimator{BinaryPredictionTransformer{TModel}, TModel}, string, bool, IEstimator{ISingleFeaturePredictionTransformer{ICalibrator}}, int, bool)" />
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (1)
75/// <seealso cref="StandardTrainersCatalog.PairwiseCoupling{TModel}(MulticlassClassificationCatalog.MulticlassClassificationTrainers, ITrainerEstimator{ISingleFeaturePredictionTransformer{TModel}, TModel}, string, bool, IEstimator{ISingleFeaturePredictionTransformer{ICalibrator}}, int)" />
StandardTrainersCatalog.cs (3)
715private static ICalibratorTrainer GetCalibratorTrainerOrThrow(IExceptionContext ectx, IEstimator<ISingleFeaturePredictionTransformer<ICalibrator>> calibratorEstimator) 756IEstimator<ISingleFeaturePredictionTransformer<ICalibrator>> calibrator = null, 796IEstimator<ISingleFeaturePredictionTransformer<ICalibrator>> calibrator = null,
Microsoft.ML.Tests (1)
FeatureContributionTests.cs (1)
219where TCalibrator : class, ICalibrator