3 writes to Step
Microsoft.ML.StandardTrainers (3)
Optimizer\LineSearch.cs (3)
120
Step
= initStep;
179
hi.
Step
= lo.Step * 2;
200
mid.
Step
= interp;
22 references to Step
Microsoft.ML.StandardTrainers (22)
Optimizer\LineSearch.cs (22)
101
float t1 = a.Deriv + b.Deriv - 3 * (a.Value - b.Value) / (a.
Step
- b.
Step
);
102
float t2 = Math.Sign(b.
Step
- a.
Step
) * MathUtils.Sqrt(t1 * t1 - a.Deriv * b.Deriv);
105
return b.
Step
- (b.
Step
- a.
Step
) * num / denom;
177
if (lo.
Step
>= MaxStep)
179
hi.Step = lo.
Step
* 2;
192
float minProgressStep = _minProgress * (hi.
Step
- lo.
Step
);
193
float maxMid = hi.
Step
- minProgressStep;
196
float minMid = lo.
Step
+ minProgressStep;
202
if (mid.Deriv == 0 || mid.
Step
== lo.
Step
|| mid.
Step
== hi.
Step
)
203
return mid.
Step
;
210
if (lo.
Step
>= MaxStep)
213
window = (hi.
Step
- lo.
Step
) / hi.
Step
;