Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
java-roc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cylab
java-roc
Merge requests
!2
Correct bug
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Correct bug
correct_bug
into
master
Overview
0
Commits
3
Pipelines
1
Changes
3
Merged
a.croix
requested to merge
correct_bug
into
master
5 years ago
Overview
0
Commits
3
Pipelines
1
Changes
3
Expand
0
0
Merge request reports
Viewing commit
875037df
Prev
Next
Show latest version
3 files
+
21
−
4
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
875037df
Solve bug. Large dataset produced a negative AUC or an AUC bigger than 1
· 875037df
a.croix
authored
5 years ago
src/main/java/be/cylab/java/roc/Main.java
+
2
−
2
Options
@@ -32,12 +32,12 @@ public final class Main {
@@ -32,12 +32,12 @@ public final class Main {
System
.
out
.
println
(
"PR AUC with trapezoid : "
+
pr
.
computePRAUC
());
System
.
out
.
println
(
"PR AUC with trapezoid : "
+
pr
.
computePRAUC
());
pr
.
computePrcPointsAndGenerateCurve
(
"PR_curve.png"
);
pr
.
computePrcPointsAndGenerateCurve
(
"PR_curve.png"
);
double
[]
long_data
=
new
double
[
2
0
0000
];
double
[]
long_data
=
new
double
[
2
5
0000
];
double
[]
long_alert
=
new
double
[
long_data
.
length
];
double
[]
long_alert
=
new
double
[
long_data
.
length
];
for
(
int
i
=
0
;
i
<
long_data
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
long_data
.
length
;
i
++)
{
long_data
[
i
]
=
Math
.
random
();
long_data
[
i
]
=
Math
.
random
();
double
trig
=
Math
.
random
();
double
trig
=
Math
.
random
();
if
(
trig
<
0.
2
)
{
if
(
trig
<
0.
5
)
{
long_alert
[
i
]
=
0.0
;
long_alert
[
i
]
=
0.0
;
}
else
{
}
else
{
long_alert
[
i
]
=
1.0
;
long_alert
[
i
]
=
1.0
;
Loading