2 interfaces inheriting from IPredictorProducing
Microsoft.ML.Core (1)
Prediction\IPredictor.cs (1)
60
internal interface IDistPredictorProducing<out TResult, out TResultDistribution> :
IPredictorProducing
<TResult>
Microsoft.ML.Data (1)
Dirty\PredictorInterfaces.cs (1)
165
internal interface IPredictorWithFeatureWeights<out TResult> : IHaveFeatureWeights,
IPredictorProducing
<TResult>
4 implementations of IPredictorProducing
Microsoft.ML.Data (1)
Dirty\ModelParametersBase.cs (1)
14
public abstract class ModelParametersBase<TOutput> : ICanSaveModel,
IPredictorProducing
<TOutput>
Microsoft.ML.Ensemble (2)
PipelineEnsemble.cs (1)
118
private abstract class SchemaBindablePipelineEnsemble<T> : SchemaBindablePipelineEnsembleBase,
IPredictorProducing
<T>
Trainer\EnsembleModelParametersBase.cs (1)
17
IPredictorProducing
<TOutput>, ICanSaveInTextFormat, ICanSaveSummary
Microsoft.ML.FastTree (1)
GamClassification.cs (1)
197
public sealed class GamBinaryModelParameters : GamModelParametersBase,
IPredictorProducing
<float>
146 references to IPredictorProducing
Microsoft.ML.Data (55)
DataLoadSave\TransformerChain.cs (12)
301
pred = new BinaryPredictionTransformer<
IPredictorProducing
<float>>(env, predictor as
IPredictorProducing
<float>, chain.Schema,
304
pred = new MulticlassPredictionTransformer<
IPredictorProducing
<VBuffer<float>>>(env,
305
predictor as
IPredictorProducing
<VBuffer<float>>, chain.Schema,
309
pred = new ClusteringPredictionTransformer<
IPredictorProducing
<VBuffer<float>>>(env, predictor as
IPredictorProducing
<VBuffer<float>>, chain.Schema,
312
pred = new RegressionPredictionTransformer<
IPredictorProducing
<float>>(env, predictor as
IPredictorProducing
<float>, chain.Schema,
315
pred = new AnomalyPredictionTransformer<
IPredictorProducing
<float>>(env, predictor as
IPredictorProducing
<float>, chain.Schema,
318
pred = new RankingPredictionTransformer<
IPredictorProducing
<float>>(env, predictor as
IPredictorProducing
<float>, chain.Schema,
Prediction\Calibrator.cs (17)
62
[assembly: LoadableClass(typeof(CalibratedModelParametersBase), typeof(ValueMapperCalibratedModelParameters<
IPredictorProducing
<float>, ICalibrator>), null, typeof(SignatureLoadModel),
64
ValueMapperCalibratedModelParameters<
IPredictorProducing
<float>, ICalibrator>.LoaderSignature, "BulkCaliPredExec")]
66
[assembly: LoadableClass(typeof(CalibratedModelParametersBase), typeof(FeatureWeightsCalibratedModelParameters<
IPredictorProducing
<float>, ICalibrator>), null, typeof(SignatureLoadModel),
70
[assembly: LoadableClass(typeof(CalibratedModelParametersBase), typeof(ParameterMixingCalibratedModelParameters<
IPredictorProducing
<float>, ICalibrator>), null, typeof(SignatureLoadModel),
74
[assembly: LoadableClass(typeof(CalibratedModelParametersBase), typeof(SchemaBindableCalibratedModelParameters<
IPredictorProducing
<float>, ICalibrator>), null, typeof(SignatureLoadModel),
75
"Schema Bindable Calibrated Predictor", SchemaBindableCalibratedModelParameters<
IPredictorProducing
<float>, ICalibrator>.LoaderSignature)]
151
IPredictorProducing
<float> WeaklyTypedSubModel { get; }
206
IPredictorProducing
<float> IWeaklyTypedCalibratedModelParameters.WeaklyTypedSubModel => (
IPredictorProducing
<float>)SubModel;
209
PredictionKind IPredictor.PredictionKind => ((
IPredictorProducing
<float>)SubModel).PredictionKind;
219
Host.Assert(predictor is
IPredictorProducing
<float>);
755
_bindable = ScoreUtils.GetSchemaBindableMapper(Host, SubModel as
IPredictorProducing
<float>);
762
_bindable = ScoreUtils.GetSchemaBindableMapper(Host, SubModel as
IPredictorProducing
<float>);
871
if (!(predictor is
IPredictorProducing
<float>))
937
return CreateCalibratedPredictor(env, (
IPredictorProducing
<float>)predictor, trainedCalibrator);
1027
public static
IPredictorProducing
<float> CreateCalibratedPredictor<TSubPredictor, TCalibrator>(IHostEnvironment env, TSubPredictor predictor, TCalibrator cali)
1028
where TSubPredictor : class,
IPredictorProducing
<float>
Scorers\PredictionTransformer.cs (26)
26
[assembly: LoadableClass(typeof(AnomalyPredictionTransformer<
IPredictorProducing
<float>>), typeof(AnomalyPredictionTransformer), null, typeof(SignatureLoadModel),
29
[assembly: LoadableClass(typeof(ClusteringPredictionTransformer<
IPredictorProducing
<VBuffer<float>>>), typeof(ClusteringPredictionTransformer), null, typeof(SignatureLoadModel),
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>
722
var host = Contracts.CheckRef(env, nameof(env)).Register(nameof(BinaryPredictionTransformer<
IPredictorProducing
<float>>));
723
ctx.LoadModel<
IPredictorProducing
<float>, SignatureLoadModel>(host, out
IPredictorProducing
<float> model, DirModel);
739
var host = Contracts.CheckRef(env, nameof(env)).Register(nameof(MulticlassPredictionTransformer<
IPredictorProducing
<VBuffer<float>>>));
740
ctx.LoadModel<
IPredictorProducing
<VBuffer<float>>, SignatureLoadModel>(host, out
IPredictorProducing
<VBuffer<float>> model, DirModel);
756
var host = Contracts.CheckRef(env, nameof(env)).Register(nameof(RegressionPredictionTransformer<
IPredictorProducing
<float>>));
757
ctx.LoadModel<
IPredictorProducing
<float>, SignatureLoadModel>(host, out
IPredictorProducing
<float> model, DirModel);
774
var host = Contracts.CheckRef(env, nameof(env)).Register(nameof(RankingPredictionTransformer<
IPredictorProducing
<float>>));
775
ctx.LoadModel<
IPredictorProducing
<float>, SignatureLoadModel>(host, out
IPredictorProducing
<float> model, DirModel);
785
internal static object Create(IHostEnvironment env, ModelLoadContext ctx, IHost host,
IPredictorProducing
<float> model, Type predictionTransformerType)
796
internal static object Create(IHostEnvironment env, ModelLoadContext ctx, IHost host,
IPredictorProducing
<VBuffer<float>> model, Type predictionTransformerType)
861
public static AnomalyPredictionTransformer<
IPredictorProducing
<float>> Create(IHostEnvironment env, ModelLoadContext ctx)
862
=> new AnomalyPredictionTransformer<
IPredictorProducing
<float>>(env, ctx);
869
public static ClusteringPredictionTransformer<
IPredictorProducing
<VBuffer<float>>> Create(IHostEnvironment env, ModelLoadContext ctx)
870
=> new ClusteringPredictionTransformer<
IPredictorProducing
<VBuffer<float>>>(env, ctx);
Microsoft.ML.Ensemble (44)
EntryPoints\CreateEnsemble.cs (2)
158
var ensemble = trainer.CombineModels(input.Models.Select(pm => pm.Predictor as
IPredictorProducing
<float>));
190
var ensemble = trainer.CombineModels(input.Models.Select(pm => pm.Predictor as
IPredictorProducing
<float>));
FeatureSubsetModel.cs (3)
14
public readonly
IPredictorProducing
<TOutput> Predictor;
20
public FeatureSubsetModel(
IPredictorProducing
<TOutput> predictor, BitArray features = null,
23
if (!(predictor is
IPredictorProducing
<TOutput> predictorProducing))
OutputCombiners\BaseStacking.cs (6)
25
internal abstract IComponentFactory<ITrainerEstimator<ISingleFeaturePredictionTransformer<
IPredictorProducing
<TOutput>>,
IPredictorProducing
<TOutput>>> GetPredictorFactory();
28
private protected readonly IComponentFactory<ITrainerEstimator<ISingleFeaturePredictionTransformer<
IPredictorProducing
<TOutput>>,
IPredictorProducing
<TOutput>>> BasePredictorType;
30
private protected
IPredictorProducing
<TOutput> Meta;
64
ctx.LoadModel<
IPredictorProducing
<TOutput>, SignatureLoadModel>(env, out Meta, "MetaPredictor");
OutputCombiners\MultiStacking.cs (2)
22
using TVectorTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<
IPredictorProducing
<VBuffer<float>>>,
IPredictorProducing
<VBuffer<float>>>;
OutputCombiners\RegressionStacking.cs (2)
20
using TScalarTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<
IPredictorProducing
<float>>,
IPredictorProducing
<float>>;
OutputCombiners\Stacking.cs (2)
18
using TScalarTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<
IPredictorProducing
<float>>,
IPredictorProducing
<float>>;
Trainer\Binary\EnsembleTrainer.cs (6)
25
using TScalarPredictor =
IPredictorProducing
<Single>;
26
using TScalarTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<
IPredictorProducing
<float>>,
IPredictorProducing
<float>>;
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\EnsembleModelParametersBase.cs (2)
69
var
predictor = p as
IPredictorProducing
<TOutput>;
Trainer\EnsembleTrainerBase.cs (7)
53
internal abstract IComponentFactory<ITrainerEstimator<ISingleFeaturePredictionTransformer<
IPredictorProducing
<TOutput>>,
IPredictorProducing
<TOutput>>>[] GetPredictorFactories();
64
private protected readonly ITrainerEstimator<ISingleFeaturePredictionTransformer<
IPredictorProducing
<TOutput>>,
IPredictorProducing
<TOutput>>[] Trainers;
97
Trainers = new ITrainerEstimator<ISingleFeaturePredictionTransformer<
IPredictorProducing
<TOutput>>,
IPredictorProducing
<TOutput>>[NumModels];
221
private protected static FeatureSubsetModel<TOutput>[] CreateModels<T>(List<FeatureSubsetModel<TOutput>> models) where T :
IPredictorProducing
<TOutput>
Trainer\Multiclass\MulticlassDataPartitionEnsembleTrainer.cs (6)
26
using TVectorPredictor =
IPredictorProducing
<VBuffer<Single>>;
27
using TVectorTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<
IPredictorProducing
<VBuffer<float>>>,
IPredictorProducing
<VBuffer<float>>>;
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 (6)
25
using TScalarPredictor =
IPredictorProducing
<Single>;
26
using TScalarTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<
IPredictorProducing
<float>>,
IPredictorProducing
<float>>;
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.EntryPoints (9)
ModelOperations.cs (1)
159
input.ModelArray.Select(p => p.Predictor as
IPredictorProducing
<float>).ToArray()))
PermutationFeatureImportance.cs (8)
93
var pred = new BinaryPredictionTransformer<
IPredictorProducing
<float>>(
94
env, predictor as
IPredictorProducing
<float>, roleMappedData.Data.Schema, featureColumnName);
150
var pred = new MulticlassPredictionTransformer<
IPredictorProducing
<VBuffer<float>>>(
151
env, predictor as
IPredictorProducing
<VBuffer<float>>, roleMappedData.Data.Schema, featureColumnName, labelColumnName);
209
var pred = new RegressionPredictionTransformer<
IPredictorProducing
<float>>(
210
env, predictor as
IPredictorProducing
<float>, roleMappedData.Data.Schema, featureColumnName);
262
var pred = new RankingPredictionTransformer<
IPredictorProducing
<float>>(
263
env, predictor as
IPredictorProducing
<float>, roleMappedData.Data.Schema, featureColumnName);
Microsoft.ML.FastTree (7)
FastTreeClassification.cs (2)
35
[assembly: LoadableClass(typeof(
IPredictorProducing
<float>), typeof(FastTreeBinaryModelParameters), null, typeof(SignatureLoadModel),
87
internal static
IPredictorProducing
<float> Create(IHostEnvironment env, ModelLoadContext ctx)
GamClassification.cs (2)
23
[assembly: LoadableClass(typeof(
IPredictorProducing
<float>), typeof(GamBinaryModelParameters), null, typeof(SignatureLoadModel),
234
internal static
IPredictorProducing
<float> Create(IHostEnvironment env, ModelLoadContext ctx)
RandomForestClassification.cs (2)
28
[assembly: LoadableClass(typeof(
IPredictorProducing
<float>), typeof(FastForestBinaryModelParameters), null, typeof(SignatureLoadModel),
106
internal static
IPredictorProducing
<float> Create(IHostEnvironment env, ModelLoadContext ctx)
TreeEnsembleFeaturizer.cs (1)
720
if (predictor is CalibratedModelParametersBase<
IPredictorProducing
<float>, Calibrators.ICalibrator> calibratedModelParametersBase)
Microsoft.ML.LightGbm (4)
LightGbmBinaryTrainer.cs (2)
22
[assembly: LoadableClass(typeof(
IPredictorProducing
<float>), typeof(LightGbmBinaryModelParameters), null, typeof(SignatureLoadModel),
75
internal static
IPredictorProducing
<float> Create(IHostEnvironment env, ModelLoadContext ctx)
LightGbmMulticlassTrainer.cs (2)
219
IPredictorProducing
<float>[] predictors = new
IPredictorProducing
<float>[_numberOfClasses];
Microsoft.ML.Predictor.Tests (1)
TestPredictors.cs (1)
671
var fastTree = combiner.CombineModels(fastTrees.Select(pm => (
IPredictorProducing
<float>)pm.Predictor));
Microsoft.ML.StandardTrainers (26)
LdSvm\LdSvmModelParameters.cs (1)
148
private static
IPredictorProducing
<float> Create(IHostEnvironment env, ModelLoadContext ctx)
Standard\LinearModelParameters.cs (2)
24
[assembly: LoadableClass(typeof(
IPredictorProducing
<float>), typeof(LinearBinaryModelParameters), null, typeof(SignatureLoadModel),
481
internal static
IPredictorProducing
<float> Create(IHostEnvironment env, ModelLoadContext ctx)
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (2)
15
using TScalarTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<
IPredictorProducing
<float>>,
IPredictorProducing
<float>>;
Standard\MulticlassClassification\OneVersusAllTrainer.cs (15)
39
using TScalarPredictor =
IPredictorProducing
<float>;
40
using TScalarTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<
IPredictorProducing
<float>>,
IPredictorProducing
<float>>;
154
var predictors = new
TScalarPredictor
[count];
163
private ISingleFeaturePredictionTransformer<
TScalarPredictor
> TrainOne(IChannel ch, TScalarTrainer trainer, RoleMappedData data, int cls)
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];
298
internal static OneVersusAllModelParameters Create(IHost host, OutputFormula outputFormula,
TScalarPredictor
[] predictors)
338
internal static OneVersusAllModelParameters Create(IHost host, bool useProbability,
TScalarPredictor
[] predictors)
349
internal static OneVersusAllModelParameters Create(IHost host,
TScalarPredictor
[] predictors)
378
var predictors = new
TScalarPredictor
[len];
390
var predictors = new
TScalarPredictor
[len];
603
internal ImplRaw(
TScalarPredictor
[] predictors)
852
internal ImplSoftmax(
TScalarPredictor
[] predictors)
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (2)
28
using TScalarTrainer = ITrainerEstimator<ISingleFeaturePredictionTransformer<
IPredictorProducing
<float>>,
IPredictorProducing
<float>>;
StandardTrainersCatalog.cs (4)
763
if (!(binaryEstimator is ITrainerEstimator<ISingleFeaturePredictionTransformer<
IPredictorProducing
<float>>,
IPredictorProducing
<float>> est))
802
if (!(binaryEstimator is ITrainerEstimator<ISingleFeaturePredictionTransformer<
IPredictorProducing
<float>>,
IPredictorProducing
<float>> est))