2 writes to TrainingScores
Microsoft.ML.FastTree (2)
Training\OptimizationAlgorithms\OptimizationAlgorithm.cs (2)
43
TrainingScores
= ConstructScoreTracker("train", trainData, initTrainScores);
52
TrainingScores
= ConstructScoreTracker("train", trainData, initTrainScores);
27 references to TrainingScores
Microsoft.ML.FastTree (27)
FastTree.cs (4)
617
OptimizationAlgorithm.
TrainingScores
.RandomizeScores(FastTreeTrainerOptions.Seed, false);
688
.AddOutputsToScores(OptimizationAlgorithm.
TrainingScores
.Dataset,
689
OptimizationAlgorithm.
TrainingScores
.Scores,
707
OptimizationAlgorithm.
TrainingScores
.RandomizeScores(FastTreeTrainerOptions.Seed, true);
FastTreeClassification.cs (1)
237
var lossCalculator = new BinaryClassificationTest(optimizationAlgorithm.
TrainingScores
, _trainSetLabels, _sigmoidParameter);
FastTreeRanking.cs (2)
215
_specialTrainSetTest = new FastNdcgTest(optimizationAlgorithm.
TrainingScores
, TrainSet.Ratings, FastTreeTrainerOptions.SortingAlgorithm, FastTreeTrainerOptions.EarlyStoppingMetrics);
427
OptimizationAlgorithm.
TrainingScores
,
FastTreeRegression.cs (1)
156
var lossCalculator = new RegressionTest(optimizationAlgorithm.
TrainingScores
);
FastTreeTweedie.cs (1)
168
var lossCalculator = new RegressionTest(optimizationAlgorithm.
TrainingScores
);
Training\OptimizationAlgorithms\AcceleratedGradientDescent.cs (2)
24
AgdScoreTracker trainingScores =
TrainingScores
as AgdScoreTracker;
57
if (t !=
TrainingScores
)
Training\OptimizationAlgorithms\ConjugateGradientDescent.cs (1)
26
_currentGradient = ObjectiveFunction.GetGradient(ch,
TrainingScores
.Scores);
Training\OptimizationAlgorithms\GradientDescent.cs (12)
43
_droppedScores = new double[
TrainingScores
.Scores.Length];
47
_scores = new double[
TrainingScores
.Scores.Length];
72
_scores[j] =
TrainingScores
.Scores[j] - _droppedScores[j];
73
TrainingScores
.Scores[j] -= _droppedScores[j] / (1.0 + _numberOfDroppedTrees);
78
return ObjectiveFunction.GetGradient(ch,
TrainingScores
.Scores);
89
Dataset.DatasetSkeleton dsSkeleton =
TrainingScores
.Dataset.Skeleton;
111
backupScores =
TrainingScores
.Scores;
112
TrainingScores
.Scores = _scores;
116
AdjustTreeOutputsOverride.AdjustTreeOutputs(ch, tree, TreeLearner.Partitioning,
TrainingScores
);
118
(ObjectiveFunction as IStepSearch).AdjustTreeOutputs(ch, tree, TreeLearner.Partitioning,
TrainingScores
);
124
TrainingScores
.Scores = backupScores;
137
_treeScores.Add(tree.GetOutputs(
TrainingScores
.Dataset));
Training\OptimizationAlgorithms\OptimizationAlgorithm.cs (3)
45
TrackedScores.Add(
TrainingScores
);
53
TrackedScores[0] =
TrainingScores
;
71
if (t ==
TrainingScores
)