Class BinaryClassificationPerformance
java.lang.Object
adaa.analytics.rules.logic.performance.AbstractPerformanceCounter
adaa.analytics.rules.logic.performance.BinaryClassificationPerformance
This class encapsulates the well known binary classification criteria precision and recall.
Furthermore it can be used to calculate the fallout, the equally weighted f-measure (f1-measure),
the lift, and the values for TRUE_POSITIVE, FALSE_POSITIVE, TRUE_NEGATIVE, and FALSE_NEGATIVE.
With "positive" we refer to the first class and with "negative" we refer to
the second.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final String[]
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncountExample
(IExampleSet eSet) Counts a single example, e.g.double
-
Field Details
-
PRECISION
public static final int PRECISION- See Also:
-
LIFT
public static final int LIFT- See Also:
-
FALLOUT
public static final int FALLOUT- See Also:
-
F_MEASURE
public static final int F_MEASURE- See Also:
-
FALSE_POSITIVE
public static final int FALSE_POSITIVE- See Also:
-
FALSE_NEGATIVE
public static final int FALSE_NEGATIVE- See Also:
-
TRUE_POSITIVE
public static final int TRUE_POSITIVE- See Also:
-
TRUE_NEGATIVE
public static final int TRUE_NEGATIVE- See Also:
-
SENSITIVITY
public static final int SENSITIVITY- See Also:
-
SPECIFICITY
public static final int SPECIFICITY- See Also:
-
YOUDEN
public static final int YOUDEN- See Also:
-
NEGATIVE_PREDICTIVE_VALUE
public static final int NEGATIVE_PREDICTIVE_VALUE- See Also:
-
PSEP
public static final int PSEP- See Also:
-
GEOMETRIC_MEAN
public static final int GEOMETRIC_MEAN- See Also:
-
NAMES
-
-
Constructor Details
-
BinaryClassificationPerformance
public BinaryClassificationPerformance() -
BinaryClassificationPerformance
public BinaryClassificationPerformance(int type)
-
-
Method Details
-
countExample
Description copied from class:AbstractPerformanceCounter
Counts a single example, e.g. by summing up errors.- Specified by:
countExample
in classAbstractPerformanceCounter
-
countResultValue
public double countResultValue()
-