public class ConfusionMatrix extends Object
| Constructor and Description |
|---|
ConfusionMatrix(Trial t)
Constructs matrix and calculates values
|
| Modifier and Type | Method and Description |
|---|---|
double |
getClassPrior(int classIndex)
Returns the percentage of instances with
true label = classIndex
|
double |
getConfusionBetween(int class1,
int class2)
Returns percent of time that class2 is true class when
class1 is predicted class
|
double |
getPrecision(int predictedClassIndex)
Returns the precision of this predicted class
|
String |
toString() |
public ConfusionMatrix(Trial t)
t - the trial to build matrix frompublic double getPrecision(int predictedClassIndex)
public double getConfusionBetween(int class1,
int class2)
public double getClassPrior(int classIndex)
Copyright © 2019 JULIE Lab, Germany. All rights reserved.