2 writes to _currentGradient
Microsoft.ML.FastTree (2)
Training\OptimizationAlgorithms\ConjugateGradientDescent.cs (2)
26_currentGradient = ObjectiveFunction.GetGradient(ch, TrainingScores.Scores); 28_currentGradient = (double[])_currentGradient.Clone();
6 references to _currentGradient
Microsoft.ML.FastTree (6)
Training\OptimizationAlgorithms\ConjugateGradientDescent.cs (6)
24_previousGradient = _currentGradient; 28_currentGradient = (double[])_currentGradient.Clone(); 34_previousGradient = _currentGradient; 38double beta = VectorUtils.GetDotProduct(_currentGradient, VectorUtils.Subtract(_currentGradient, _previousGradient)) / VectorUtils.GetDotProduct(_previousGradient, _previousGradient); 48VectorUtils.AddInPlace(previousDk, _currentGradient);