1 interface inheriting from IPredictorProducing
Microsoft.ML.Core (1)
Prediction\IPredictor.cs (1)
60
internal 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)
87
return new EnsembleModelParameters(Host, PredictionKind, CreateModels<
TScalarPredictor
>(models), Combiner);
103
Host.CheckParam(models.All(m => m is
TScalarPredictor
), nameof(models));
105
models.Select(k => new FeatureSubsetModel<float>((
TScalarPredictor
)k)).ToArray(), combiner);
Trainer\Multiclass\MulticlassDataPartitionEnsembleTrainer.cs (3)
92
return new EnsembleMulticlassModelParameters(Host, CreateModels<
TVectorPredictor
>(models), Combiner as IMulticlassOutputCombiner);
98
Host.CheckParam(models.All(m => m is
TVectorPredictor
), nameof(models));
102
models.Select(k => new FeatureSubsetModel<VBuffer<float>>((
TVectorPredictor
)k)).ToArray(),
Trainer\Regression\RegressionEnsembleTrainer.cs (3)
80
return new EnsembleModelParameters(Host, PredictionKind, CreateModels<
TScalarPredictor
>(models), Combiner);
86
Host.CheckParam(models.All(m => m is
TScalarPredictor
), nameof(models));
92
models.Select(k => new FeatureSubsetModel<float>((
TScalarPredictor
)k)).ToArray(), combiner);
Microsoft.ML.StandardTrainers (6)
Standard\MulticlassClassification\OneVersusAllTrainer.cs (6)
154
var predictors = new
TScalarPredictor
[count];
185
return new BinaryPredictionTransformer<
TScalarPredictor
>(Host, calibratedModel, trainedData.Data.Schema, transformer.FeatureColumnName);
188
return new BinaryPredictionTransformer<
TScalarPredictor
>(Host, transformer.Model, view.Schema, transformer.FeatureColumnName);
218
var predictors = new
TScalarPredictor
[numClasses];
378
var predictors = new
TScalarPredictor
[len];
390
var predictors = new
TScalarPredictor
[len];
Microsoft.ML.Tests (17)
CalibratedModelParametersTests.cs (17)
100
var
loaded = RoundTripBinaryModel(CreateBinaryModel(modelType));
127
var
loaded = RoundTripBinaryModel(CreateBinaryModel(modelType), calibrator);
133
var
reloaded = RoundTripBinaryModel(loaded);
149
var
model = CreateCalibratedBinaryModel(CreateBinaryModel(modelType), calibrator);
151
var
loaded = RoundTripBinaryModel(model);
167
var
model = CreateBinaryModel(modelType);
177
private
IPredictorProducing
<float> CreateBinaryModel(Type modelType)
212
private
IPredictorProducing
<float> CreateCalibratedBinaryModel(
IPredictorProducing
<float> model, PlattCalibrator calibrator)
225
private
IPredictorProducing
<float> RoundTripBinaryModel(
IPredictorProducing
<float> model, ICalibrator embeddedCalibrator = null)
241
ModelLoadContext.LoadModel<
IPredictorProducing
<float>, SignatureLoadModel>(
242
Env, out
var
subModel, reader, Path.Combine("Predictor", "Predictor"));
249
ModelLoadContext.LoadModel<
IPredictorProducing
<float>, SignatureLoadModel>(Env, out
var
loaded, reader, "Predictor");
253
private static void AssertCalibratedBinaryModel(
IPredictorProducing
<float> model, Type modelType,
281
private void AssertBinaryScores(
IPredictorProducing
<float> model, bool calibrated = false, bool useNaiveCalibrator = false)