|
||||||||||
| 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
com.rapidminer.operator.performance.MeasuredPerformance
com.rapidminer.operator.performance.PredictionAverage
public class PredictionAverage
Returns the average value of the prediction. This criterion can be used to
detect whether a learning scheme predicts nonsense, e.g. always make the same
error. This criterion is not suitable for evaluating the performance and
should never be used as main criterion. The getFitness() method
always returns 0.
| Constructor Summary | |
|---|---|
PredictionAverage()
|
|
PredictionAverage(PredictionAverage pa)
|
|
| Method Summary | |
|---|---|
void |
buildSingleAverage(Averagable performance)
This method should build the average of this and another averagable of the same type. |
void |
countExample(Example example)
Counts a single example, e.g. by summing up errors. |
java.lang.String |
getDescription()
Returns a description of the performance criterion. |
double |
getExampleCount()
Returns the number of data points which was used to determine the criterion value. |
double |
getFitness()
Returns 0. |
double |
getMikroAverage()
Returns the (current) value of the averagable (the average itself). |
double |
getMikroVariance()
Returns the variance of the averagable. |
java.lang.String |
getName()
Returns the name of this averagable. |
void |
startCounting(ExampleSet set,
boolean useExampleWeights)
Initializes the criterion. |
| Methods inherited from class com.rapidminer.operator.performance.MeasuredPerformance |
|---|
startCounting |
| Methods inherited from class com.rapidminer.operator.performance.PerformanceCriterion |
|---|
compareTo, getMaxFitness |
| Methods inherited from class com.rapidminer.tools.math.Averagable |
|---|
buildAverage, clone, cloneAveragable, formatPercent, getAverage, getAverageCount, getExtension, getFileDescription, getMakroAverage, getMakroStandardDeviation, getMakroVariance, getMikroStandardDeviation, getStandardDeviation, getVariance, getVisualizationComponent, setAverageCount, toString |
| Methods inherited from class com.rapidminer.operator.ResultObjectAdapter |
|---|
addAction, getActions, getResultIcon, isSavable, log, logError, logNote, logWarning, save, toHTML, toResultString |
| Methods inherited from class com.rapidminer.operator.AbstractIOObject |
|---|
copy, getLog, getSource, initWriting, 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 |
|---|
copy, getLog, getSource, setLoggingHandler, setSource, write |
| Constructor Detail |
|---|
public PredictionAverage()
public PredictionAverage(PredictionAverage pa)
| Method Detail |
|---|
public double getExampleCount()
PerformanceCriterion
getExampleCount in class PerformanceCriterionpublic void countExample(Example example)
MeasuredPerformance
countExample in class MeasuredPerformancepublic double getMikroAverage()
AveragableAveragable.buildSingleAverage(Averagable) was used, this method must return the
micro average from both (or more) criteria. This is usually achieved by
correctly implementing Averagable.buildSingleAverage(Averagable).
getMikroAverage in class Averagablepublic double getMikroVariance()
Averagable
getMikroVariance in class Averagable
public void startCounting(ExampleSet set,
boolean useExampleWeights)
throws OperatorException
MeasuredPerformance
startCounting in class MeasuredPerformanceOperatorExceptionpublic java.lang.String getName()
Averagable
getName in interface ResultObjectgetName in class Averagablepublic double getFitness()
getFitness in class PerformanceCriterionpublic void buildSingleAverage(Averagable performance)
AveragableAveragable.getMikroAverage() should return the
average of this and the given averagable. Hence, this method is used to build
the actual micro average value of two criteria. Please refer to
SimpleCriterion for a simple
implementation example.
buildSingleAverage in class Averagablepublic java.lang.String getDescription()
PerformanceCriterionPerformanceEvaluator operator.
getDescription in class PerformanceCriterion
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||