1 write to Host
Microsoft.ML.Data (1)
Prediction\Calibrator.cs (1)
216
Host
= env.Register(name);
43 references to Host
Microsoft.ML.Data (43)
Prediction\Calibrator.cs (43)
217
Host
.CheckValue(predictor, nameof(predictor));
218
Host
.CheckValue(calibrator, nameof(calibrator));
219
Host
.Assert(predictor is IPredictorProducing<float>);
227
Host
.Check(calibrator == null, "Too many calibrators.");
310
Contracts.AssertValue(
Host
);
313
Host
.Check(_mapper != null, "The predictor does not implement IValueMapper");
314
Host
.Check(_mapper.OutputType == NumberDataViewType.Single, "The output type of the predictor is expected to be float");
326
Host
.Check(typeof(TOut) == typeof(float));
327
Host
.Check(typeof(TDist) == typeof(float));
341
Host
.Check(_featureContribution != null, "Predictor does not implement IFeatureContributionMapper");
347
Host
.CheckValue(ctx, nameof(ctx));
348
Host
.CheckValue(input, nameof(input));
350
Host
.Assert(_mapper is ISingleCanSavePfa);
358
Host
.CheckValue(ctx, nameof(ctx));
359
Host
.CheckValue(input, nameof(input));
360
Host
.CheckValueOrNull(score);
361
Host
.CheckValueOrNull(prob);
381
Host
.CheckValue(ctx, nameof(ctx));
382
Host
.CheckValue(outputNames, nameof(outputNames));
384
Host
.Assert(_mapper is ISingleCanSaveOnnx);
484
Host
.Assert(predictor is IPredictorWithFeatureWeights<float>);
506
Host
.Check(SubModel is IPredictorWithFeatureWeights<float>, "Predictor does not implement " + nameof(IPredictorWithFeatureWeights<float>));
529
Host
.CheckValue(ctx, nameof(ctx));
559
Host
.Check(predictor is IParameterMixer<float>, "Predictor does not implement " + nameof(IParameterMixer<float>));
560
Host
.Check(calibrator is IParameterMixer, "Calibrator does not implement " + nameof(IParameterMixer));
561
Host
.Assert(predictor is IPredictorWithFeatureWeights<float>);
582
Host
.Check(SubModel is IParameterMixer<float>, "Predictor does not implement " + nameof(IParameterMixer));
583
Host
.Check(SubModel is IPredictorWithFeatureWeights<float>, "Predictor does not implement " + nameof(IPredictorWithFeatureWeights<float>));
606
Host
.CheckValue(ctx, nameof(ctx));
635
return new ParameterMixingCalibratedModelParameters<TSubModel, TCalibrator>(
Host
, (TSubModel)combinedPredictor, (TCalibrator)combinedCalibrator);
755
_bindable = ScoreUtils.GetSchemaBindableMapper(
Host
, SubModel as IPredictorProducing<float>);
762
_bindable = ScoreUtils.GetSchemaBindableMapper(
Host
, SubModel as IPredictorProducing<float>);
783
Host
.CheckValue(ctx, nameof(ctx));
784
Host
.CheckValue(schema, nameof(schema));
785
Host
.CheckParam(Utils.Size(outputs) == 2, nameof(outputs), "Expected this to have two outputs");
786
Host
.Check(((ICanSavePfa)this).CanSavePfa, "Called despite not being savable");
793
Host
.CheckValue(ctx, nameof(ctx));
794
Host
.CheckParam(Utils.Size(outputs) == 2, nameof(outputs), "Expected this to have two outputs");
795
Host
.CheckValue(schema, nameof(schema));
796
Host
.Check(((ICanSaveOnnx)this).CanSaveOnnx(ctx), "Called despite not being savable");
802
Host
.CheckValue(env, nameof(env));
804
return new Bound(
Host
, this, schema);
810
Host
.Check(_featureContribution != null, "Predictor does not implement " + nameof(IFeatureContributionMapper));