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

Update README

parent 0697084e
No related branches found
No related tags found
No related merge requests found
Pipeline #2170 passed
......@@ -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
......
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