246 references to PredictionKind
Microsoft.ML.Core (2)
Prediction\IPredictor.cs (1)
43
PredictionKind
PredictionKind { get; }
Prediction\ITrainer.cs (1)
54
PredictionKind
PredictionKind { get; }
Microsoft.ML.Data (23)
DataLoadSave\TransformerChain.cs (6)
300
if (predictor.PredictionKind ==
PredictionKind
.BinaryClassification)
303
else if (predictor.PredictionKind ==
PredictionKind
.MulticlassClassification)
308
else if (predictor.PredictionKind ==
PredictionKind
.Clustering)
311
else if (predictor.PredictionKind ==
PredictionKind
.Regression)
314
else if (predictor.PredictionKind ==
PredictionKind
.AnomalyDetection)
317
else if (predictor.PredictionKind ==
PredictionKind
.Ranking)
Dirty\ModelParametersBase.cs (2)
69
PredictionKind
IPredictor.PredictionKind => PredictionKind;
72
private protected abstract
PredictionKind
PredictionKind { get; }
Prediction\Calibrator.cs (1)
209
PredictionKind
IPredictor.PredictionKind => ((IPredictorProducing<float>)SubModel).PredictionKind;
Prediction\IModelCombiner.cs (1)
10
internal delegate void SignatureModelCombiner(
PredictionKind
kind);
Scorers\FeatureContributionCalculation.cs (1)
117
public
PredictionKind
PredictionKind => Predictor.PredictionKind;
Scorers\SchemaBindablePredictorWrapper.cs (9)
364
case
PredictionKind
.BinaryClassification:
366
case
PredictionKind
.MulticlassClassification:
368
case
PredictionKind
.Regression:
370
case
PredictionKind
.MultiOutputRegression:
372
case
PredictionKind
.Ranking:
374
case
PredictionKind
.AnomalyDetection:
376
case
PredictionKind
.Clustering:
494
if (Predictor.PredictionKind !=
PredictionKind
.BinaryClassification)
495
ch.Warning("Scoring predictor of kind '{0}' as '{1}'.", Predictor.PredictionKind,
PredictionKind
.BinaryClassification);
Training\TrainerEstimatorBase.cs (2)
52
PredictionKind
ITrainer.PredictionKind => PredictionKind;
55
private protected abstract
PredictionKind
PredictionKind { get; }
Training\TrainerUtils.cs (1)
403
public
PredictionKind
PredictionKind { get; }
Microsoft.ML.Ensemble (53)
PipelineEnsemble.cs (8)
236
public override
PredictionKind
PredictionKind
241
return
PredictionKind
.Regression;
243
return
PredictionKind
.AnomalyDetection;
264
public override
PredictionKind
PredictionKind
269
return
PredictionKind
.MulticlassClassification;
296
public override
PredictionKind
PredictionKind { get { return
PredictionKind
.BinaryClassification; } }
399
public abstract
PredictionKind
PredictionKind { get; }
Selector\SubModelSelector\AllSelector.cs (2)
21
protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
Selector\SubModelSelector\AllSelectorMulticlass.cs (2)
23
protected override
PredictionKind
PredictionKind =>
PredictionKind
.MulticlassClassification;
Selector\SubModelSelector\BaseSubModelSelector.cs (7)
19
protected abstract
PredictionKind
PredictionKind { get; }
61
case
PredictionKind
.BinaryClassification:
63
case
PredictionKind
.Regression:
65
case
PredictionKind
.MulticlassClassification:
107
case
PredictionKind
.BinaryClassification:
118
case
PredictionKind
.Regression:
124
case
PredictionKind
.MulticlassClassification:
Selector\SubModelSelector\BestDiverseSelectorBinary.cs (2)
48
protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
Selector\SubModelSelector\BestDiverseSelectorMulticlass.cs (2)
40
protected override
PredictionKind
PredictionKind =>
PredictionKind
.MulticlassClassification;
Selector\SubModelSelector\BestDiverseSelectorRegression.cs (2)
46
protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
Selector\SubModelSelector\BestPerformanceRegressionSelector.cs (2)
51
protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
Selector\SubModelSelector\BestPerformanceSelector.cs (2)
51
protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
Selector\SubModelSelector\BestPerformanceSelectorMulticlass.cs (2)
47
protected override
PredictionKind
PredictionKind =>
PredictionKind
.MulticlassClassification;
Trainer\Binary\EnsembleTrainer.cs (4)
75
private EnsembleTrainer(IHostEnvironment env, Arguments args,
PredictionKind
predictionKind)
78
Host.CheckParam(predictionKind ==
PredictionKind
.BinaryClassification, nameof(PredictionKind));
81
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
Trainer\EnsembleDistributionModelParameters.cs (3)
53
private protected override
PredictionKind
PredictionKind { get; }
63
internal EnsembleDistributionModelParameters(IHostEnvironment env,
PredictionKind
kind,
76
PredictionKind = (
PredictionKind
)ctx.Reader.ReadInt32();
Trainer\EnsembleModelParameters.cs (3)
47
private protected override
PredictionKind
PredictionKind { get; }
57
internal EnsembleModelParameters(IHostEnvironment env,
PredictionKind
kind,
68
PredictionKind = (
PredictionKind
)ctx.Reader.ReadInt32();
Trainer\EnsembleTrainerBase.cs (2)
72
PredictionKind
ITrainer.PredictionKind => PredictionKind;
73
private protected abstract
PredictionKind
PredictionKind { get; }
Trainer\Multiclass\EnsembleMulticlassModelParameters.cs (2)
108
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.MulticlassClassification;
Trainer\Multiclass\MulticlassDataPartitionEnsembleTrainer.cs (4)
82
private MulticlassDataPartitionEnsembleTrainer(IHostEnvironment env, Arguments args,
PredictionKind
predictionKind)
85
Host.CheckParam(predictionKind ==
PredictionKind
.MulticlassClassification, nameof(PredictionKind));
88
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.MulticlassClassification;
Trainer\Regression\RegressionEnsembleTrainer.cs (4)
70
private RegressionEnsembleTrainer(IHostEnvironment env, Arguments args,
PredictionKind
predictionKind)
73
Host.CheckParam(predictionKind ==
PredictionKind
.Regression, nameof(PredictionKind));
76
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
Microsoft.ML.EntryPoints (5)
PermutationFeatureImportance.cs (4)
68
if (predictor.PredictionKind ==
PredictionKind
.BinaryClassification)
70
else if (predictor.PredictionKind ==
PredictionKind
.MulticlassClassification)
72
else if (predictor.PredictionKind ==
PredictionKind
.Regression)
74
else if (predictor.PredictionKind ==
PredictionKind
.Ranking)
ScoreColumnSelector.cs (1)
73
if (input.PredictorModel.Predictor.PredictionKind ==
PredictionKind
.BinaryClassification)
Microsoft.ML.FastTree (58)
FastTree.cs (13)
897
private protected readonly
PredictionKind
PredictionKind;
930
PredictionKind
kind, int[] categoricalFeatureIndices, bool categoricalSplit)
956
float maxLabel, bool diskTranspose, bool noFlocks, int minDocsPerLeaf,
PredictionKind
kind,
975
float maxLabel, bool diskTranspose, bool noFlocks,
PredictionKind
kind, int[] categoricalFeatureIndices, bool categoricalSplit)
1266
public DiskImpl(RoleMappedData data, IHost host, int maxBins, float maxLabel,
PredictionKind
kind,
1276
double[][] binUpperBounds, float maxLabel,
PredictionKind
kind, int[] categoricalFeatureIndices, bool categoricalSplit)
1605
if (PredictionKind ==
PredictionKind
.Ranking)
1760
bool noFlocks,
PredictionKind
kind, int[] categoricalFeatureIndices, bool categoricalSplit)
1782
PredictionKind
kind, IParallelTraining parallelTraining, int[] categoricalFeatureIndices, bool categoricalSplit)
1792
bool noFlocks,
PredictionKind
kind, int[] categoricalFeatureIndices, bool categoricalSplit)
1822
if (PredictionKind ==
PredictionKind
.Ranking)
2744
public Dataset FindBinsAndReturnDataset(RoleMappedData data,
PredictionKind
kind, IParallelTraining parallelTraining,
2762
public Dataset GetCompatibleDataset(RoleMappedData data,
PredictionKind
kind, int[] categoricalFeatures, bool categoricalSplit)
FastTreeClassification.cs (4)
100
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
182
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
FastTreeRanking.cs (4)
82
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Ranking;
1074
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Ranking;
FastTreeRegression.cs (4)
73
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
525
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
FastTreeTweedie.cs (4)
75
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
561
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
GamClassification.cs (4)
79
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
200
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
GamModelParameters.cs (2)
902
case
PredictionKind
.BinaryClassification:
904
case
PredictionKind
.Regression:
GamRegression.cs (4)
75
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
150
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
RandomForestClassification.cs (4)
89
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
175
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
RandomForestRegression.cs (4)
216
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
310
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
TreeEnsemble\TreeEnsembleCombiner.cs (11)
19
private readonly
PredictionKind
_kind;
21
public TreeEnsembleCombiner(IHostEnvironment env,
PredictionKind
kind)
26
case
PredictionKind
.BinaryClassification:
27
case
PredictionKind
.Regression:
28
case
PredictionKind
.Ranking:
32
throw _host.ExceptUserArg(nameof(kind), $"Tree ensembles can be either of type {nameof(
PredictionKind
.BinaryClassification)}, " +
33
$"{nameof(
PredictionKind
.Regression)} or {nameof(
PredictionKind
.Ranking)}");
102
case
PredictionKind
.BinaryClassification:
109
case
PredictionKind
.Regression:
111
case
PredictionKind
.Ranking:
Microsoft.ML.KMeansClustering (4)
KMeansModelParameters.cs (2)
51
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Clustering;
KMeansPlusPlusTrainer.cs (2)
163
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Clustering;
Microsoft.ML.LightGbm (18)
LightGbmBinaryTrainer.cs (4)
57
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
123
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
LightGbmMulticlassTrainer.cs (3)
69
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.MulticlassClassification;
337
ch.Assert(PredictionKind ==
PredictionKind
.MulticlassClassification);
LightGbmRankingTrainer.cs (4)
54
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Ranking;
112
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Ranking;
LightGbmRegressionTrainer.cs (4)
52
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
115
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
LightGbmTrainerBase.cs (3)
554
if (PredictionKind ==
PredictionKind
.Ranking)
728
ch.Assert(((ITrainer)this).PredictionKind !=
PredictionKind
.MulticlassClassification || GbmOptions.ContainsKey("num_class"),
773
if (PredictionKind ==
PredictionKind
.Ranking)
Microsoft.ML.Mkl.Components (4)
OlsLinearRegression.cs (2)
110
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
SymSgdClassificationTrainer.cs (2)
235
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
Microsoft.ML.OnnxConverter (2)
SaveOnnxCommand.cs (2)
359
if (rawPred.PredictionKind ==
PredictionKind
.BinaryClassification || rawPred.PredictionKind ==
PredictionKind
.MulticlassClassification)
Microsoft.ML.PCA (4)
PcaTrainer.cs (4)
127
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.AnomalyDetection;
443
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.AnomalyDetection;
Microsoft.ML.Predictor.Tests (14)
TestPredictors.cs (14)
669
IModelCombiner combiner = new TreeEnsembleCombiner(Env,
PredictionKind
.BinaryClassification);
795
CombineAndTestEnsembles(dataView, "pe", "oc=average",
PredictionKind
.BinaryClassification, predictors);
832
CombineAndTestEnsembles(dataView, "weightedensemblemulticlass", "oc=multiaverage",
PredictionKind
.MulticlassClassification, predictors);
835
private void CombineAndTestEnsembles(IDataView idv, string name, string options,
PredictionKind
predictionKind,
852
if (predictionKind ==
PredictionKind
.BinaryClassification)
868
if (predictionKind ==
PredictionKind
.BinaryClassification)
890
var scoreGetter = predictionKind ==
PredictionKind
.MulticlassClassification ?
893
var vectorScoreGetter = predictionKind ==
PredictionKind
.MulticlassClassification ?
896
var probGetter = predictionKind ==
PredictionKind
.BinaryClassification ?
899
var predGetter = predictionKind ==
PredictionKind
.BinaryClassification ?
909
scoreGetters[i] = predictionKind ==
PredictionKind
.MulticlassClassification ?
912
vectorScoreGetters[i] = predictionKind ==
PredictionKind
.MulticlassClassification ?
915
probGetters[i] = predictionKind ==
PredictionKind
.BinaryClassification ?
918
predGetters[i] = predictionKind ==
PredictionKind
.BinaryClassification ?
Microsoft.ML.Recommender (4)
MatrixFactorizationPredictor.cs (2)
85
PredictionKind
IPredictor.PredictionKind =>
PredictionKind
.Recommendation;
MatrixFactorizationTrainer.cs (2)
304
PredictionKind
ITrainer.PredictionKind =>
PredictionKind
.Recommendation;
Microsoft.ML.StandardTrainers (51)
FactorizationMachine\FactorizationMachineTrainer.cs (2)
180
PredictionKind
ITrainer.PredictionKind =>
PredictionKind
.BinaryClassification;
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (2)
30
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
LdSvm\LdSvmModelParameters.cs (2)
156
private protected override
PredictionKind
PredictionKind { get { return
PredictionKind
.BinaryClassification; } }
LdSvm\LdSvmTrainer.cs (2)
178
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
Standard\LinearModelParameters.cs (4)
510
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
586
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
Standard\LogisticRegression\LogisticRegression.cs (2)
161
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
Standard\LogisticRegression\MulticlassLogisticRegression.cs (4)
167
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.MulticlassClassification;
447
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.MulticlassClassification;
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (3)
47
PredictionKind
ITrainer.PredictionKind => PredictionKind;
48
private protected
PredictionKind
PredictionKind =>
PredictionKind
.MulticlassClassification;
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (4)
78
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.MulticlassClassification;
252
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.MulticlassClassification;
Standard\MulticlassClassification\OneVersusAllTrainer.cs (2)
278
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.MulticlassClassification;
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (2)
256
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.MulticlassClassification;
Standard\Online\AveragedPerceptron.cs (2)
192
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
Standard\Online\LinearSvm.cs (2)
303
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
Standard\Online\OnlineGradientDescent.cs (2)
166
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
Standard\PoissonRegression\PoissonRegression.cs (2)
111
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
Standard\SdcaBinary.cs (4)
1457
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
1951
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
Standard\SdcaMulticlass.cs (2)
113
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.MulticlassClassification;
Standard\SdcaRegression.cs (2)
98
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.Regression;
Standard\Simple\SimpleTrainers.cs (6)
61
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
209
PredictionKind
ITrainer.PredictionKind =>
PredictionKind
.BinaryClassification;
438
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.BinaryClassification;
Microsoft.ML.Vision (4)
ImageClassificationTrainer.cs (4)
460
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.MulticlassClassification;
1380
private protected override
PredictionKind
PredictionKind =>
PredictionKind
.MulticlassClassification;