public class WindowAUCImbalancedPerformanceEvaluator extends AbstractOptionHandler implements ClassificationPerformanceEvaluator
Modifier and Type | Class and Description |
---|---|
class |
WindowAUCImbalancedPerformanceEvaluator.Estimator |
class |
WindowAUCImbalancedPerformanceEvaluator.SimpleEstimator |
Modifier and Type | Field and Description |
---|---|
protected int |
numClasses |
protected double |
totalObservedInstances |
IntOption |
widthOption |
config
Constructor and Description |
---|
WindowAUCImbalancedPerformanceEvaluator() |
Modifier and Type | Method and Description |
---|---|
void |
addResult(Example<Instance> exampleInstance,
double[] classVotes) |
void |
addResult(Example<Instance> arg0,
Prediction arg1)
Adds a learning result to this evaluator.
|
WindowAUCImbalancedPerformanceEvaluator.Estimator |
getAucEstimator() |
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
Measurement[] |
getPerformanceMeasurements()
Gets the current measurements monitored by this evaluator.
|
void |
prepareForUseImpl(TaskMonitor monitor,
ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.
|
void |
reset()
Resets this evaluator.
|
void |
reset(int numClasses) |
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, measureByteSize
public IntOption widthOption
protected double totalObservedInstances
protected int numClasses
public WindowAUCImbalancedPerformanceEvaluator()
public void reset()
LearningPerformanceEvaluator
reset
in interface LearningPerformanceEvaluator<Example<Instance>>
public void reset(int numClasses)
public void addResult(Example<Instance> exampleInstance, double[] classVotes)
addResult
in interface LearningPerformanceEvaluator<Example<Instance>>
public Measurement[] getPerformanceMeasurements()
LearningPerformanceEvaluator
getPerformanceMeasurements
in interface LearningPerformanceEvaluator<Example<Instance>>
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.getDescription
in interface MOAObject
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractOptionHandler
prepareForUseImpl
and not prepareForUse
since
prepareForUse
calls prepareForUseImpl
.prepareForUseImpl
in class AbstractOptionHandler
monitor
- the TaskMonitor to userepository
- the ObjectRepository to usepublic WindowAUCImbalancedPerformanceEvaluator.Estimator getAucEstimator()
public void addResult(Example<Instance> arg0, Prediction arg1)
LearningPerformanceEvaluator
addResult
in interface LearningPerformanceEvaluator<Example<Instance>>
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.