提交 73429ba9 编写于 作者: X xiexionghang

codestyle

上级 5268da59
...@@ -85,7 +85,7 @@ std::string AucMonitor::format_result() { ...@@ -85,7 +85,7 @@ std::string AucMonitor::format_result() {
void AucMonitor::add_unlocked(double pred, int label) { void AucMonitor::add_unlocked(double pred, int label) {
if (std::isnan(pred)) { if (std::isnan(pred)) {
VLOG(2) << "pred[" << pred << "] outside of [0,1]"; VLOG(2) << "pred[" << pred << "] outside of [0,1]";
continue; return;
} }
CHECK(pred >= 0 && pred <= 1) << "pred[" << pred << "] outside of [0,1]"; CHECK(pred >= 0 && pred <= 1) << "pred[" << pred << "] outside of [0,1]";
CHECK(label == 0 || label == 1) << "label[" << label << "] invalid"; CHECK(label == 0 || label == 1) << "label[" << label << "] invalid";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册