weibozhao commented on code in PR #252:
URL: https://github.com/apache/flink-ml/pull/252#discussion_r1299704470


##########
flink-ml-lib/src/main/java/org/apache/flink/ml/evaluation/binaryclassification/BinaryClassificationEvaluator.java:
##########
@@ -520,13 +354,16 @@ private static long[] 
reduceBinarySummary(List<BinarySummary> values, int taskId
      */
     private static void updateBinarySummary(
             BinarySummary statistics, Tuple3<Double, Boolean, Double> 
evalElement) {
-        if (evalElement.f1) {
-            statistics.curPositive++;
+        boolean isPos = evalElement.f1;
+        double weight = evalElement.f2;
+        double score = evalElement.f0;
+        if (isPos) {

Review Comment:
   The variable 'isPos' is only used once here, there is no need to declare a 
variable. Just use 'evalElement.f1' is OK.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to