2 writes to _loss
Microsoft.ML.StandardTrainers (2)
Standard\SdcaMulticlass.cs (2)
139
_loss
= loss ?? SdcaTrainerOptions.InternalLoss ?? SdcaTrainerOptions.LossFunctionFactory.CreateComponent(env);
150
_loss
= options.InternalLoss ?? options.LossFunctionFactory.CreateComponent(env);
6 references to _loss
Microsoft.ML.StandardTrainers (6)
Standard\SdcaMulticlass.cs (6)
140
Loss =
_loss
;
151
Loss =
_loss
;
222
invariant =
_loss
.ComputeDualUpdateInvariant(2 * normSquared * lambdaNInv * GetInstanceWeight(cursor));
258
var dualUpdate =
_loss
.DualUpdate(output, 1, dual, invariant, numThreads);
397
subLoss +=
_loss
.Loss(labelOutput - currentClassOutput, 1);
400
subDualLoss +=
_loss
.DualLoss(1, dual);