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
Commits
83691343
Commit
83691343
authored
5 years ago
by
a.croix
Browse files
Options
Downloads
Patches
Plain Diff
Update README
parent
0697084e
No related branches found
No related tags found
No related merge requests found
Pipeline
#2170
passed
5 years ago
Stage: leaks
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+13
-1
13 additions, 1 deletion
README.md
with
13 additions
and
1 deletion
README.md
+
13
−
1
View file @
83691343
...
...
@@ -13,7 +13,17 @@ The Area Under the Curve (AUC) is a simple way to compare different ROC curves a
## Installation
Using maven:
```
bash
<dependency>
<groupId>be.cylab</groupId>
<artifactId>java-roc</artifactId>
<version>0.0.3</version>
</dependency>
```
https://mvnrepository.com/artifact/be.cylab/java-roc
## Usage
...
...
@@ -44,7 +54,8 @@ public static void main(final String[] args) {
//AUC computation and printing
System
.
out
.
println
(
roc
.
computeAUC
());
//Roc points computation
List
<
RocCoordinates
>
roc_coordinates
=
roc
.
computeRocPoints
();
List
<
RocCoordinates
>
roc_coordinates
=
roc
.
computeRocPointsAndGenerateCurve
(
"Roc_curve.png"
);
//Save RocCoordinates in a CSV file
Utils
.
storeRocCoordinatesInCSVFile
(
roc_coordinates
,
"/home/alex/Desktop/Test.csv"
);
}
...
...
@@ -52,6 +63,7 @@ public static void main(final String[] args) {
-
ROC object takes an array of double (between 0 and 1) and an array of boolean elements.
-
Method computeRocPoints return a list of RocCoordinates. RocCoordinates represents the X and Y coordinates of a point in the ROC space.
-
Method computeRocPointsAndGenerateCurve return a list of RocCoordinates. The method produces also an image of the the curve.
-
Method storeRocCoordinatesInCSVFile takes a list of RocCoordinates and String (file path) and store all elements un a CSV file.
### From CSV file
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment