Class MultiClassificationPerformance
java.lang.Object
adaa.analytics.rules.logic.performance.AbstractPerformanceCounter
adaa.analytics.rules.logic.performance.MultiClassificationPerformance
Measures the accuracy and classification error for both binary classification problems and multi
class problems. Additionally, this performance criterion can also compute the kappa statistics
for multi class problems. This is calculated as k = (P(A) - P(E)) / (1 - P(E)) with [ P(A) =
diagonal sum / number of examples ] and [ P(E) = sum over i of ((sum of i-th row * sum of i-th
column) / (n to the power of 2) ].
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMultiClassificationPerformance
(int type) Creates a MultiClassificationPerformance with the given type. -
Method Summary
Modifier and TypeMethodDescriptioncountExample
(IExampleSet eSet) Initializes the criterion and sets the label.double
-
Field Details
-
ACCURACY
public static final int ACCURACYIndicates accuracy.- See Also:
-
ERROR
public static final int ERRORIndicates classification error.- See Also:
-
KAPPA
public static final int KAPPAIndicates kappa statistics.- See Also:
-
NAMES
The names of the criteria.
-
-
Constructor Details
-
MultiClassificationPerformance
public MultiClassificationPerformance(int type) Creates a MultiClassificationPerformance with the given type.
-
-
Method Details
-
countExample
Initializes the criterion and sets the label.- Specified by:
countExample
in classAbstractPerformanceCounter
-
countResultValue
public double countResultValue()
-