|
||||||||||
| 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.RankCorrelation
public class RankCorrelation
Computes either the Spearman (rho) or Kendall (tau-b) rank correlation between the actual label and predicted values of an example set. Since ranking is involved, neither correlation is averageable.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.rapidminer.operator.AbstractIOObject |
|---|
AbstractIOObject.InputStreamProvider |
| Field Summary | |
|---|---|
static java.lang.String[] |
DESCRIPTIONS
|
static java.lang.String[] |
NAMES
|
static int |
RHO
|
static int |
TAU
|
| Constructor Summary | |
|---|---|
RankCorrelation()
Default constructor |
|
RankCorrelation(int type)
Constructor with user-specified choice of correlation coefficient. |
|
RankCorrelation(RankCorrelation rc)
|
|
| Method Summary | |
|---|---|
protected void |
buildSingleAverage(Averagable averagable)
Averaging across instances of RankCorrelation is unsupported (?) |
void |
countExample(Example example)
Does nothing. |
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. |
void |
startCounting(ExampleSet eSet,
boolean useExampleWeights)
Computes whichever of rho and tau was requested. |
| 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, 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 |
| Field Detail |
|---|
public static final java.lang.String[] NAMES
public static final java.lang.String[] DESCRIPTIONS
public static final int RHO
public static final int TAU
| Constructor Detail |
|---|
public RankCorrelation()
public RankCorrelation(int type)
type - coefficient type with coefficient choicepublic RankCorrelation(RankCorrelation rc)
| Method Detail |
|---|
public void countExample(Example example)
startCounting(ExampleSet, boolean).
countExample in class MeasuredPerformancepublic java.lang.String getDescription()
PerformanceCriterionPerformanceEvaluator operator.
getDescription in class PerformanceCriterionpublic double getExampleCount()
PerformanceCriterion
getExampleCount in class PerformanceCriterionpublic 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 PerformanceCriterionprotected void buildSingleAverage(Averagable averagable)
buildSingleAverage 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 getMikroVariance()
Averagable
getMikroVariance in class Averagablepublic java.lang.String getName()
Averagable
getName in interface ResultObjectgetName in class Averagable
public void startCounting(ExampleSet eSet,
boolean useExampleWeights)
throws OperatorException
startCounting in class MeasuredPerformanceOperatorException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||