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