Commit e662a31a by Chris Coughlin

Reduced MLROIConfFinder's logging

parent 70aac2ff
......@@ -74,15 +74,11 @@ public abstract class MLROIConfFinder implements MLROIFinder, ROIProbability {
int idx = scores.maxValueIndex();
double maxConf = scores.maxValue();
if (idx > 0) {
StringBuilder sb = new StringBuilder("Predicted ROI class " + idx + " with probability " + maxConf);
if (maxConf < confThr) {
// Only report ROI if the model's confidence > threshold
sb.append(": below ").append(confThr).append(", setting to ").append(negativeClass());
log.info("Predicted ROI with confidence ", maxConf, " below threshold ", confThr, ". Reporting as ", negativeClass());
return negativeClass();
} else {
sb.append(": above ").append(confThr).append(", no changes made");
}
log.info(sb.toString());
}
return idx;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment