1 write to _smoothConst
Microsoft.ML.Data (1)
Utils\LossFunctions.cs (1)
338
_smoothConst
= smoothingConstant;
7 references to _smoothConst
Microsoft.ML.Data (7)
Utils\LossFunctions.cs (7)
339
_halfSmoothConst =
_smoothConst
/ 2;
340
_doubleSmoothConst =
_smoothConst
* 2;
356
if (u <
_smoothConst
) // u > 1 - _smoothConst
370
if (u <
_smoothConst
)
371
return -truth * u /
_smoothConst
;
378
return 1 / (scaledFeaturesNormSquared +
_smoothConst
);
384
var tmp = (1 - output * truth -
_smoothConst
* alpha * truth) * invariant + alpha * truth;