public class BasicClusteringPerformanceEvaluator extends AbstractMOAObject implements LearningPerformanceEvaluator
Modifier and Type | Field and Description |
---|---|
protected double |
weightCorrect |
protected double |
weightObserved |
Constructor and Description |
---|
BasicClusteringPerformanceEvaluator() |
Modifier and Type | Method and Description |
---|---|
void |
addLearningAttempt(int trueClass,
double[] classVotes,
double weight) |
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
double |
getFractionCorrectlyClassified() |
double |
getFractionIncorrectlyClassified() |
Measurement[] |
getPerformanceMeasurements() |
double |
getTotalWeightObserved() |
void |
reset() |
copy, copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, measureByteSize
protected double weightObserved
protected double weightCorrect
public void reset()
reset
in interface LearningPerformanceEvaluator
public void addLearningAttempt(int trueClass, double[] classVotes, double weight)
addLearningAttempt
in interface LearningPerformanceEvaluator
public Measurement[] getPerformanceMeasurements()
getPerformanceMeasurements
in interface LearningPerformanceEvaluator
public double getTotalWeightObserved()
public double getFractionCorrectlyClassified()
public double getFractionIncorrectlyClassified()
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 indentCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.