You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Fanoid (via GitHub)" <gi...@apache.org> on 2023/08/22 06:04:30 UTC
[GitHub] [flink-ml] Fanoid commented on a diff in pull request #252: [FLINK-32889] Fix calcuation of weighted areaUnderROC and areaUnderPRC in BinaryClassificationEvaluator
Fanoid commented on code in PR #252:
URL: https://github.com/apache/flink-ml/pull/252#discussion_r1301004383
##########
flink-ml-lib/src/main/java/org/apache/flink/ml/evaluation/binaryclassification/BinaryClassificationEvaluator.java:
##########
@@ -362,7 +234,7 @@ public void mapPartition(
reduceMetrics = reduceMetrics.merge(iter.next());
}
Map<String, Double> map = new HashMap<>();
- map.put(AREA_UNDER_ROC, reduceMetrics.areaUnderROC);
+ map.put(AREA_UNDER_ROC, 1. - reduceMetrics.areaUnderROC);
Review Comment:
Good point! I've changed the way to calculate areaUnderROC, so there is no more `1. - ` here.
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org