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