1 write to Host
Microsoft.ML.Data (1)
Prediction\Calibrator.cs (1)
216Host = env.Register(name);
43 references to Host
Microsoft.ML.Data (43)
Prediction\Calibrator.cs (43)
217Host.CheckValue(predictor, nameof(predictor)); 218Host.CheckValue(calibrator, nameof(calibrator)); 219Host.Assert(predictor is IPredictorProducing<float>); 227Host.Check(calibrator == null, "Too many calibrators."); 310Contracts.AssertValue(Host); 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"); 326Host.Check(typeof(TOut) == typeof(float)); 327Host.Check(typeof(TDist) == typeof(float)); 341Host.Check(_featureContribution != null, "Predictor does not implement IFeatureContributionMapper"); 347Host.CheckValue(ctx, nameof(ctx)); 348Host.CheckValue(input, nameof(input)); 350Host.Assert(_mapper is ISingleCanSavePfa); 358Host.CheckValue(ctx, nameof(ctx)); 359Host.CheckValue(input, nameof(input)); 360Host.CheckValueOrNull(score); 361Host.CheckValueOrNull(prob); 381Host.CheckValue(ctx, nameof(ctx)); 382Host.CheckValue(outputNames, nameof(outputNames)); 384Host.Assert(_mapper is ISingleCanSaveOnnx); 484Host.Assert(predictor is IPredictorWithFeatureWeights<float>); 506Host.Check(SubModel is IPredictorWithFeatureWeights<float>, "Predictor does not implement " + nameof(IPredictorWithFeatureWeights<float>)); 529Host.CheckValue(ctx, nameof(ctx)); 559Host.Check(predictor is IParameterMixer<float>, "Predictor does not implement " + nameof(IParameterMixer<float>)); 560Host.Check(calibrator is IParameterMixer, "Calibrator does not implement " + nameof(IParameterMixer)); 561Host.Assert(predictor is IPredictorWithFeatureWeights<float>); 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>)); 606Host.CheckValue(ctx, nameof(ctx)); 635return 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>); 783Host.CheckValue(ctx, nameof(ctx)); 784Host.CheckValue(schema, nameof(schema)); 785Host.CheckParam(Utils.Size(outputs) == 2, nameof(outputs), "Expected this to have two outputs"); 786Host.Check(((ICanSavePfa)this).CanSavePfa, "Called despite not being savable"); 793Host.CheckValue(ctx, nameof(ctx)); 794Host.CheckParam(Utils.Size(outputs) == 2, nameof(outputs), "Expected this to have two outputs"); 795Host.CheckValue(schema, nameof(schema)); 796Host.Check(((ICanSaveOnnx)this).CanSaveOnnx(ctx), "Called despite not being savable"); 802Host.CheckValue(env, nameof(env)); 804return new Bound(Host, this, schema); 810Host.Check(_featureContribution != null, "Predictor does not implement " + nameof(IFeatureContributionMapper));