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