public class FadingFactorClassificationPerformanceEvaluator extends AbstractOptionHandler implements ClassificationPerformanceEvaluator
| Modifier and Type | Class and Description |
|---|---|
protected class |
FadingFactorClassificationPerformanceEvaluator.Estimator |
| Modifier and Type | Field and Description |
|---|---|
FloatOption |
alphaOption |
protected double |
TotalweightObserved |
protected FadingFactorClassificationPerformanceEvaluator.Estimator |
weightCorrect |
classOptionNamesToPreparedObjects, options| Constructor and Description |
|---|
FadingFactorClassificationPerformanceEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(weka.core.Instance inst,
double[] classVotes)
Adds a learning result to this evaluator.
|
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
double |
getFractionCorrectlyClassified() |
double |
getFractionIncorrectlyClassified() |
Measurement[] |
getPerformanceMeasurements()
Gets the current measurements monitored by this evaluator.
|
double |
getTotalWeightObserved() |
void |
prepareForUseImpl(TaskMonitor monitor,
ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.
|
void |
reset()
Resets this evaluator.
|
copy, discoverOptionsViaReflection, getCLICreationString, getOptions, getPreparedClassOption, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUsecopy, measureByteSize, measureByteSize, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopy, measureByteSizeprotected double TotalweightObserved
public FloatOption alphaOption
protected FadingFactorClassificationPerformanceEvaluator.Estimator weightCorrect
public FadingFactorClassificationPerformanceEvaluator()
public void reset()
ClassificationPerformanceEvaluatorreset in interface ClassificationPerformanceEvaluatorpublic void addResult(weka.core.Instance inst,
double[] classVotes)
ClassificationPerformanceEvaluatoraddResult in interface ClassificationPerformanceEvaluatorinst - the instance to be classifiedclassVotes - an array containing the estimated membership
probabilities of the test instance in each classpublic Measurement[] getPerformanceMeasurements()
ClassificationPerformanceEvaluatorgetPerformanceMeasurements in interface ClassificationPerformanceEvaluatorpublic double getTotalWeightObserved()
public double getFractionCorrectlyClassified()
public double getFractionIncorrectlyClassified()
public void getDescription(StringBuilder sb, int indent)
MOAObjectAbstractMOAObject.toString
to give a string representation of the object.getDescription in interface MOAObjectsb - the stringbuilder to add the descriptionindent - the number of characters to indentpublic void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractOptionHandlerprepareForUseImpl
and not prepareForUse since
prepareForUse calls prepareForUseImpl.prepareForUseImpl in class AbstractOptionHandlermonitor - the TaskMonitor to userepository - the ObjectRepository to useCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.