9 writes to _dir
Microsoft.ML.StandardTrainers (9)
Optimizer\L1Optimizer.cs (2)
161_steepestDescDir.CopyTo(ref _dir); 214VBufferUtils.ApplyWith(in _steepestDescDir, ref _dir,
Optimizer\Optimizer.cs (7)
215_dir = CreateWorkingVector(); 262VectorUtils.AddMult(in _yList[i], alphas[i], ref _dir); 273VectorUtils.ScaleBy(ref _dir, _roList[lastGoodRo] / yDotY); 280VectorUtils.AddMult(in _sList[i], -alphas[i] - beta, ref _dir); 295VBufferUtils.ApplyWithEitherDefined(in _steepestDescDir, ref _dir, 315_steepestDescDir.CopyTo(ref _dir); 318VectorUtils.ScaleInto(in _grad, -1, ref _dir);
12 references to _dir
Microsoft.ML.StandardTrainers (12)
Optimizer\L1Optimizer.cs (3)
166VectorUtils.AddMultInto(in _x, alpha, in _dir, ref _newX); 199float dirDeriv = -VectorUtils.DotProduct(in _dir, in _steepestDescDir); 209float alpha = (Iter == 1 ? (1 / VectorUtils.Norm(_dir)) : 1);
Optimizer\Optimizer.cs (9)
158public VBuffer<float> LastDir { get { return _dir; } } 261alphas[i] = -VectorUtils.DotProduct(in _sList[i], in _dir) / _roList[i]; 279float beta = VectorUtils.DotProduct(in _yList[i], in _dir) / _roList[i]; 383float dirDeriv = VectorUtils.DotProduct(in _dir, in _grad); 395float alpha = (Iter == 1 ? (1 / VectorUtils.Norm(_dir)) : 1); 404VectorUtils.AddMultInto(in _x, alpha, in _dir, ref _newX); 425dirDeriv = VectorUtils.DotProduct(in _dir, in _newGrad); 485VectorUtils.AddMultInto(in _x, alpha, in _dir, ref _newX); 499dirDeriv = VectorUtils.DotProduct(in _dir, in _newGrad);