Package moa.evaluation
Class ALWindowClassificationPerformanceEvaluator
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.evaluation.BasicClassificationPerformanceEvaluator
-
- moa.evaluation.WindowClassificationPerformanceEvaluator
-
- moa.evaluation.ALWindowClassificationPerformanceEvaluator
-
- All Implemented Interfaces:
Configurable
,Serializable
,CapabilitiesHandler
,ALClassificationPerformanceEvaluator
,ClassificationPerformanceEvaluator
,LearningPerformanceEvaluator<Example<Instance>>
,MOAObject
,OptionHandler
public class ALWindowClassificationPerformanceEvaluator extends WindowClassificationPerformanceEvaluator implements ALClassificationPerformanceEvaluator
Active Learning Wrapper for BasicClassificationPerformanceEvaluator.- Version:
- $Revision: 1 $
- Author:
- Daniel Kottke (daniel.kottke@ovgu.de)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class moa.evaluation.WindowClassificationPerformanceEvaluator
WindowClassificationPerformanceEvaluator.WindowEstimator
-
Nested classes/interfaces inherited from class moa.evaluation.BasicClassificationPerformanceEvaluator
BasicClassificationPerformanceEvaluator.BasicEstimator, BasicClassificationPerformanceEvaluator.Estimator
-
-
Field Summary
-
Fields inherited from class moa.evaluation.WindowClassificationPerformanceEvaluator
widthOption
-
Fields inherited from class moa.evaluation.BasicClassificationPerformanceEvaluator
columnKappa, f1PerClassOption, numClasses, precision, precisionPerClassOption, precisionRecallOutputOption, recall, recallPerClassOption, rowKappa, weightCorrect
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description ALWindowClassificationPerformanceEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doLabelAcqReport(Example<Instance> trainInst, int labelAcquired)
Receives the information if a label has been acquired and increases counters.int
getAbsNumOfAcqInst()
Returns absolute number of acquired labels so far.Measurement[]
getPerformanceMeasurements()
Gets the current measurements monitored by this evaluator.double
getRelNumOfAcqInst()
Returns relative number of acquired labels so far.void
reset(int numClasses)
-
Methods inherited from class moa.evaluation.WindowClassificationPerformanceEvaluator
defineImmutableCapabilities, newEstimator
-
Methods inherited from class moa.evaluation.BasicClassificationPerformanceEvaluator
addResult, addResult, getDescription, getF1Statistic, getF1Statistic, getFractionCorrectlyClassified, getFractionIncorrectlyClassified, getKappaStatistic, getKappaTemporalStatistic, getPrecisionStatistic, getPrecisionStatistic, getRecallStatistic, getRecallStatistic, getTotalWeightObserved, prepareForUseImpl, reset
-
Methods inherited from class moa.options.AbstractOptionHandler
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
-
Methods inherited from class moa.AbstractMOAObject
copy, measureByteSize, measureByteSize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface moa.capabilities.CapabilitiesHandler
getCapabilities
-
Methods inherited from interface moa.evaluation.LearningPerformanceEvaluator
addResult, addResult, defineImmutableCapabilities, reset
-
Methods inherited from interface moa.MOAObject
getDescription, measureByteSize
-
-
-
-
Method Detail
-
doLabelAcqReport
public void doLabelAcqReport(Example<Instance> trainInst, int labelAcquired)
Receives the information if a label has been acquired and increases counters.- Specified by:
doLabelAcqReport
in interfaceALClassificationPerformanceEvaluator
- Parameters:
trainInst
- the instance that was previously consideredlabelAcquired
- bool type which indicates if trainInst was acquired by the active learner
-
getAbsNumOfAcqInst
public int getAbsNumOfAcqInst()
Returns absolute number of acquired labels so far.
-
getRelNumOfAcqInst
public double getRelNumOfAcqInst()
Returns relative number of acquired labels so far.
-
getPerformanceMeasurements
public Measurement[] getPerformanceMeasurements()
Description copied from interface:LearningPerformanceEvaluator
Gets the current measurements monitored by this evaluator.- Specified by:
getPerformanceMeasurements
in interfaceLearningPerformanceEvaluator<Example<Instance>>
- Overrides:
getPerformanceMeasurements
in classBasicClassificationPerformanceEvaluator
- Returns:
- an array of measurements monitored by this evaluator
-
reset
public void reset(int numClasses)
- Overrides:
reset
in classBasicClassificationPerformanceEvaluator
-
-