Prediction\Calibrator.cs (15)
227Host.Check(calibrator == null, "Too many calibrators.");
313Host.Check(_mapper != null, "The predictor does not implement IValueMapper");
314Host.Check(_mapper.OutputType == NumberDataViewType.Single, "The output type of the predictor is expected to be float");
341Host.Check(_featureContribution != null, "Predictor does not implement IFeatureContributionMapper");
506Host.Check(SubModel is IPredictorWithFeatureWeights<float>, "Predictor does not implement " + nameof(IPredictorWithFeatureWeights<float>));
559Host.Check(predictor is IParameterMixer<float>, "Predictor does not implement " + nameof(IParameterMixer<float>));
560Host.Check(calibrator is IParameterMixer, "Calibrator does not implement " + nameof(IParameterMixer));
582Host.Check(SubModel is IParameterMixer<float>, "Predictor does not implement " + nameof(IParameterMixer));
583Host.Check(SubModel is IPredictorWithFeatureWeights<float>, "Predictor does not implement " + nameof(IPredictorWithFeatureWeights<float>));
665env.Check(_predictor != null, "Predictor is not a row-to-row mapper");
786Host.Check(((ICanSavePfa)this).CanSavePfa, "Called despite not being savable");
796Host.Check(((ICanSaveOnnx)this).CanSaveOnnx(ctx), "Called despite not being savable");
810Host.Check(_featureContribution != null, "Predictor does not implement " + nameof(IFeatureContributionMapper));
1122ch.Check(cOutputs.Length > 0, "Calibrator trained on zero instances.");
1452ch.Check(Data != null, "Calibrator trained on zero instances.");