Skip to content
Snippets Groups Projects

Correct bug

Merged a.croix requested to merge correct_bug into master
1 file
+ 15
0
Compare changes
  • Side-by-side
  • Inline
@@ -32,5 +32,20 @@ public final class Main {
System.out.println("PR AUC with trapezoid : " + pr.computePRAUC());
pr.computePrcPointsAndGenerateCurve("PR_curve.png");
double[] long_data = new double[200000];
double[] long_alert = new double[long_data.length];
for (int i = 0; i < long_data.length; i++) {
long_data[i] = Math.random();
double trig = Math.random();
if (trig < 0.2) {
long_alert[i] = 0.0;
} else {
long_alert[i] = 1.0;
}
}
Roc long_roc = new Roc(long_data, long_alert);
System.out.println("Long AUC : " + long_roc.computeAUC());
long_roc.computeRocPointsAndGenerateCurve("long_roc.png");
}
}
Loading