|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.AbstractIOObject
com.rapidminer.operator.ResultObjectAdapter
com.rapidminer.tools.math.Averagable
com.rapidminer.operator.performance.PerformanceCriterion
public abstract class PerformanceCriterion
Each PerformanceCriterion contains a method to compute this criterion on a given set of examples, each which has to have a real and a predicted label.
PerformanceCriteria must implement the compareTo method in a way that allows Collections to sort the criteria in ascending order and determine the best as the maximum.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.rapidminer.operator.AbstractIOObject |
|---|
AbstractIOObject.InputStreamProvider |
| Constructor Summary | |
|---|---|
PerformanceCriterion()
|
|
PerformanceCriterion(PerformanceCriterion o)
Clone constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(PerformanceCriterion o)
The semantics of this method follow the specification in the interface java.lang.Comparable in the following way: Two objects of this class are equal if their getFitness() values are equal. |
abstract java.lang.String |
getDescription()
Returns a description of the performance criterion. |
abstract double |
getExampleCount()
Returns the number of data points which was used to determine the criterion value. |
abstract double |
getFitness()
Returns the fitness depending on the value. |
double |
getMaxFitness()
Returns the maximum fitness. |
| Methods inherited from class com.rapidminer.tools.math.Averagable |
|---|
buildAverage, buildSingleAverage, clone, cloneAveragable, formatPercent, getAverage, getAverageCount, getExtension, getFileDescription, getMakroAverage, getMakroStandardDeviation, getMakroVariance, getMikroAverage, getMikroStandardDeviation, getMikroVariance, getName, getStandardDeviation, getVariance, isInTargetEncoding, setAverageCount, toString |
| Methods inherited from class com.rapidminer.operator.ResultObjectAdapter |
|---|
addAction, getActions, getAnnotations, getResultIcon, log, log, logError, logNote, logWarning, toHTML, toResultString |
| Methods inherited from class com.rapidminer.operator.AbstractIOObject |
|---|
appendOperatorToHistory, copy, getLog, getProcessingHistory, getSource, initWriting, read, read, read, read, setLoggingHandler, setSource, write |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.rapidminer.operator.IOObject |
|---|
appendOperatorToHistory, copy, getLog, getProcessingHistory, getSource, setLoggingHandler, setSource, write |
| Constructor Detail |
|---|
public PerformanceCriterion()
public PerformanceCriterion(PerformanceCriterion o)
| Method Detail |
|---|
public abstract java.lang.String getDescription()
PerformanceEvaluator operator.
public abstract double getExampleCount()
public abstract double getFitness()
Returns the fitness depending on the value. The fitness values will be used for all optimization purposes (feature space transformations, parameter optimizations...) and must always be maximized. Hence, if your criterion is better the smaller the value is you should return something like (-1 * value) or (1 / value).
Subclasses should use
Averagable.getAverage() instead of Averagable.getMikroAverage() in this method
since usually the makro average (if available) should be optmized instead
of the mikro average. The mikro average should only be used in the (rare)
cases where no makro average is available but this is automatically done
returned by Averagable.getAverage() in these cases.
public double getMaxFitness()
public int compareTo(PerformanceCriterion o)
compareTo in interface java.lang.Comparable<PerformanceCriterion>o - Object of this class to compare this object to.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||