2 writes to LastValue
Microsoft.ML.StandardTrainers (2)
Optimizer\Optimizer.cs (2)
241Value = LastValue = Eval(in _x, ref _grad); 368LastValue = Value;
8 references to LastValue
Microsoft.ML.StandardTrainers (8)
Optimizer\L1Optimizer.cs (1)
231if (Value <= LastValue - Gamma * unnormCos)
Optimizer\OptimizationMonitor.cs (1)
170_unnormMeanImprovement = (state.LastValue - state.Value) + _lambda * _unnormMeanImprovement;
Optimizer\Optimizer.cs (6)
243if (!FloatUtils.IsFinite(LastValue)) 244throw Ch.Except("Optimizer unable to proceed with loss function yielding {0}", LastValue); 367var temp = LastValue; 397PointValueDeriv last = new PointValueDeriv(0, LastValue, dirDeriv); 428if ((curr.V > LastValue + c1 * alpha) || (last.A > 0 && curr.V >= last.V)) 503if ((curr.V > LastValue + c1 * alpha) || (curr.V >= aLo.V))