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
;
38
double beta = VectorUtils.GetDotProduct(
_currentGradient
, VectorUtils.Subtract(
_currentGradient
, _previousGradient)) / VectorUtils.GetDotProduct(_previousGradient, _previousGradient);
48
VectorUtils.AddInPlace(previousDk,
_currentGradient
);