1 interface inheriting from IPredictorProducing
Microsoft.ML.Core (1)
Prediction\IPredictor.cs (1)
60internal interface IDistPredictorProducing<out TResult, out TResultDistribution> : IPredictorProducing<TResult>
38 references to IPredictorProducing
Microsoft.ML.Data (6)
Scorers\PredictionTransformer.cs (6)
314/// <typeparam name="TModel">An implementation of the <see cref="IPredictorProducing{TResult}"/></typeparam> 383/// <typeparam name="TModel">An implementation of the <see cref="IPredictorProducing{TResult}"/></typeparam> 475/// <typeparam name="TModel">An implementation of the <see cref="IPredictorProducing{TResult}"/></typeparam> 568/// <typeparam name="TModel">An implementation of the <see cref="IPredictorProducing{TResult}"/></typeparam> 616/// <typeparam name="TModel">An implementation of the <see cref="IPredictorProducing{TResult}"/></typeparam> 664/// <typeparam name="TModel">An implementation of the <see cref="IPredictorProducing{TResult}"/></typeparam>
Microsoft.ML.Ensemble (9)
Trainer\Binary\EnsembleTrainer.cs (3)
87return new EnsembleModelParameters(Host, PredictionKind, CreateModels<TScalarPredictor>(models), Combiner); 103Host.CheckParam(models.All(m => m is TScalarPredictor), nameof(models)); 105models.Select(k => new FeatureSubsetModel<float>((TScalarPredictor)k)).ToArray(), combiner);
Trainer\Multiclass\MulticlassDataPartitionEnsembleTrainer.cs (3)
92return new EnsembleMulticlassModelParameters(Host, CreateModels<TVectorPredictor>(models), Combiner as IMulticlassOutputCombiner); 98Host.CheckParam(models.All(m => m is TVectorPredictor), nameof(models)); 102models.Select(k => new FeatureSubsetModel<VBuffer<float>>((TVectorPredictor)k)).ToArray(),
Trainer\Regression\RegressionEnsembleTrainer.cs (3)
80return new EnsembleModelParameters(Host, PredictionKind, CreateModels<TScalarPredictor>(models), Combiner); 86Host.CheckParam(models.All(m => m is TScalarPredictor), nameof(models)); 92models.Select(k => new FeatureSubsetModel<float>((TScalarPredictor)k)).ToArray(), combiner);
Microsoft.ML.StandardTrainers (6)
Standard\MulticlassClassification\OneVersusAllTrainer.cs (6)
154var predictors = new TScalarPredictor[count]; 185return new BinaryPredictionTransformer<TScalarPredictor>(Host, calibratedModel, trainedData.Data.Schema, transformer.FeatureColumnName); 188return new BinaryPredictionTransformer<TScalarPredictor>(Host, transformer.Model, view.Schema, transformer.FeatureColumnName); 218var predictors = new TScalarPredictor[numClasses]; 378var predictors = new TScalarPredictor[len]; 390var predictors = new TScalarPredictor[len];
Microsoft.ML.Tests (17)
CalibratedModelParametersTests.cs (17)
100var loaded = RoundTripBinaryModel(CreateBinaryModel(modelType)); 127var loaded = RoundTripBinaryModel(CreateBinaryModel(modelType), calibrator); 133var reloaded = RoundTripBinaryModel(loaded); 149var model = CreateCalibratedBinaryModel(CreateBinaryModel(modelType), calibrator); 151var loaded = RoundTripBinaryModel(model); 167var model = CreateBinaryModel(modelType); 177private IPredictorProducing<float> CreateBinaryModel(Type modelType) 212private IPredictorProducing<float> CreateCalibratedBinaryModel(IPredictorProducing<float> model, PlattCalibrator calibrator) 225private IPredictorProducing<float> RoundTripBinaryModel(IPredictorProducing<float> model, ICalibrator embeddedCalibrator = null) 241ModelLoadContext.LoadModel<IPredictorProducing<float>, SignatureLoadModel>( 242Env, out var subModel, reader, Path.Combine("Predictor", "Predictor")); 249ModelLoadContext.LoadModel<IPredictorProducing<float>, SignatureLoadModel>(Env, out var loaded, reader, "Predictor"); 253private static void AssertCalibratedBinaryModel(IPredictorProducing<float> model, Type modelType, 281private void AssertBinaryScores(IPredictorProducing<float> model, bool calibrated = false, bool useNaiveCalibrator = false)