Skip to content

Commit

Permalink
Update to Metrics 0.1.1-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuchss committed Aug 22, 2024
1 parent 56b6655 commit c2fa58d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/integration-tests/tests-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<dependency>
<groupId>io.github.ardoco</groupId>
<artifactId>metrics</artifactId>
<version>0.1.0</version>
<version>0.1.1-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public String getExplicitResultString() {

public ImmutableList<T> getFound() {
MutableList<T> found = Lists.mutable.empty();
found.addAll(classificationResult.getTp());
found.addAll(classificationResult.getFp());
found.addAll(classificationResult.getTruePositives());
found.addAll(classificationResult.getFalsePositives());
return found.toImmutable();
}

Expand Down Expand Up @@ -117,18 +117,18 @@ public double phiCoefficientMax() {
}

public List<T> truePositives() {
return classificationResult.getTp().stream().toList();
return classificationResult.getTruePositives().stream().toList();
}

public List<T> falsePositives() {
return classificationResult.getFp().stream().toList();
return classificationResult.getFalsePositives().stream().toList();
}

public List<T> falseNegatives() {
return classificationResult.getFn().stream().toList();
return classificationResult.getFalseNegatives().stream().toList();
}

public int trueNegatives() {
return classificationResult.getTn();
return classificationResult.getTrueNegatives();
}
}

0 comments on commit c2fa58d

Please sign in to comment.