Searched refs:y_wx (Results 1 – 3 of 3) sorted by relevance
70 const double y_wx = example_label * wx; in ComputePrimalLoss() local71 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()
68 const double y_wx = example_label * wx; in ComputePrimalLoss() local69 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()
91 const double y_wx = example_label * wx; in ComputePrimalLoss() local92 return std::max(0.0, 1 - y_wx) * example_weight; in ComputePrimalLoss()