Skip to content
Snippets Groups Projects
Commit 1b0d709e authored by a.croix's avatar a.croix
Browse files

Correction in computeRocPoints methods

parent 720bd77c
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,9 @@ public class Main {
Roc roc = new Roc(solutions, true_alert);
System.out.println(roc.computeAUC());
List<RocCoordinates> rocCoordinates = roc.computeRocPoints();
Utils.storeRocCoordinatesInCSVFile(rocCoordinates, "/home/alex/Desktop/Test.csv");
}
}
......@@ -38,7 +38,7 @@ public class Roc {
roc_points.add(new RocCoordinates(true_detection, false_alarm));
previous_score = point.getScore();
}
if (point.getScore() == 1) {
if (point.isTrueAlert()) {
true_positive++;
} else {
false_positive++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment