Home
last modified time | relevance | path

Searched refs:y_wx (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dsmooth-hinge-loss.h70 const double y_wx = example_label * wx; in ComputePrimalLoss() local
71 if (y_wx >= 1) return 0; in ComputePrimalLoss()
72 if (y_wx <= 1 - gamma) return (1 - y_wx - gamma / 2) * example_weight; in ComputePrimalLoss()
73 return (1 - y_wx) * (1 - y_wx) * example_weight * 0.5 / gamma; in ComputePrimalLoss()
Dlogistic-loss.h68 const double y_wx = example_label * wx; in ComputePrimalLoss() local
69 if (y_wx > 0) { in ComputePrimalLoss()
72 return log1p(exp(-y_wx)) * example_weight; in ComputePrimalLoss()
77 return (log1p(exp(y_wx)) - y_wx) * example_weight; in ComputePrimalLoss()
Dhinge-loss.h91 const double y_wx = example_label * wx; in ComputePrimalLoss() local
92 return std::max(0.0, 1 - y_wx) * example_weight; in ComputePrimalLoss()