|
||||||||||
| 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.MinMaxCriterion
public class MinMaxCriterion
This criterion should be used as wrapper around other performance criteria
(see MinMaxWrapper). Instead of averages this criterion builds the
minimum of the fitness of the criteria which should be averaged. Maximizing
the minimum instead of the average could lead to a more robust behaviour and
generalization capacity. Furthermore, this criterion can be build arbitrarily
weighted linear combinations of both the minimum and the normal average.
| Constructor Summary | |
|---|---|
MinMaxCriterion()
Necessary for newInstance() during loading. |
|
MinMaxCriterion(MeasuredPerformance delegate,
double weight)
|
|
MinMaxCriterion(MinMaxCriterion mmc)
|
|
| Method Summary | |
|---|---|
void |
buildSingleAverage(Averagable avg)
This method should build the average of this and another averagable of the same type. |
void |
countExample(Example example)
Counts a single example by invoking the delegates method. |
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 the fitness depending on the value. |
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. |
| Methods inherited from class com.rapidminer.operator.performance.MeasuredPerformance |
|---|
startCounting, 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 MinMaxCriterion()
public MinMaxCriterion(MeasuredPerformance delegate,
double weight)
public MinMaxCriterion(MinMaxCriterion mmc)
| Method Detail |
|---|
public double getExampleCount()
PerformanceCriterion
getExampleCount in class PerformanceCriterionpublic void countExample(Example example)
countExample in class MeasuredPerformancepublic java.lang.String getDescription()
getDescription in class PerformanceCriterionpublic java.lang.String getName()
Averagable
getName in interface ResultObjectgetName in class Averagablepublic 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 getFitness()
PerformanceCriterionReturns 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.
getFitness in class PerformanceCriterionpublic double getMikroVariance()
Averagable
getMikroVariance in class Averagablepublic void buildSingleAverage(Averagable avg)
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 Averagable
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||