|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.AbstractIOObject
edu.udo.cs.yale.operator.ResultObjectAdapter
edu.udo.cs.yale.tools.math.Averagable
edu.udo.cs.yale.operator.performance.PerformanceCriterion
edu.udo.cs.yale.operator.performance.MeasuredPerformance
edu.udo.cs.yale.operator.performance.MDLCriterion
public class MDLCriterion
Measures the length of an example set (i.e. the number of attributes).
| Field Summary | |
|---|---|
private int |
counter
A counter for average building. |
private int |
direction
Indicates if the fitness should be higher or smaller depending on the number of features. |
static java.lang.String[] |
DIRECTIONS
The possible optimization directions. |
private int |
length
The length of this example set. |
static int |
MAXIMIZATION
Indicates that the fitness should be higher for larger numbers of features. |
static int |
MINIMIZATION
Indicates that the fitness should be higher for smaller numbers of features. |
| Constructor Summary | |
|---|---|
MDLCriterion()
|
|
MDLCriterion(int direction)
|
|
| Method Summary | |
|---|---|
void |
buildSingleAverage(Averagable averagable)
This method should build the average of this and another averagables of the same type. |
void |
cloneAveragable(Averagable other)
Must be implemented by subclasses such that it copies all values of other to this. |
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. |
int |
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 |
readCriterionData(java.io.BufferedReader in)
Reads the performance data from the given reader. |
void |
startCounting(ExampleSet eSet)
Initialises the criterion. |
void |
writeCriterionData(java.io.PrintWriter out)
Writes the performance criterion into the given writer. |
| Methods inherited from class edu.udo.cs.yale.operator.performance.PerformanceCriterion |
|---|
compareTo, getMaxFitness, readPerformanceCriterion, writePerformanceCriterion |
| Methods inherited from class edu.udo.cs.yale.tools.math.Averagable |
|---|
buildAverage, clone, formatDeviation, formatPercent, formatValue, getAverage, getMakroAverage, getMakroStandardDeviation, getMakroVariance, getMikroStandardDeviation, getStandardDeviation, getVariance, toHTML, toString |
| Methods inherited from class edu.udo.cs.yale.operator.ResultObjectAdapter |
|---|
addAction, getActions, getVisualisationComponent, toHTML, toResultString |
| Methods inherited from class edu.udo.cs.yale.operator.AbstractIOObject |
|---|
copy, read, read, read, write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.udo.cs.yale.operator.IOObject |
|---|
copy, write, write |
| Field Detail |
|---|
public static final java.lang.String[] DIRECTIONS
public static final int MINIMIZATION
public static final int MAXIMIZATION
private int length
private int counter
private int direction
| Constructor Detail |
|---|
public MDLCriterion()
public MDLCriterion(int direction)
| Method Detail |
|---|
public void writeCriterionData(java.io.PrintWriter out)
throws java.io.IOException
PerformanceCriterion
writeCriterionData in class PerformanceCriterionjava.io.IOException
public void readCriterionData(java.io.BufferedReader in)
throws java.io.IOException
PerformanceCriterion
readCriterionData in class PerformanceCriterionjava.io.IOExceptionpublic java.lang.String getName()
Averagable
getName in interface ResultObjectgetName in class Averagablepublic java.lang.String getDescription()
MeasuredPerformance
getDescription in class MeasuredPerformance
public void startCounting(ExampleSet eSet)
throws OperatorException
MeasuredPerformance
startCounting in class MeasuredPerformanceOperatorExceptionpublic int getExampleCount()
PerformanceCriterion
getExampleCount in class PerformanceCriterionpublic void countExample(Example example)
MeasuredPerformance
countExample in class MeasuredPerformancepublic double getFitness()
PerformanceCriterion
getFitness in class PerformanceCriterionpublic double getMikroAverage()
Averagable
getMikroAverage in class Averagablepublic double getMikroVariance()
Averagable
getMikroVariance in class Averagablepublic void cloneAveragable(Averagable other)
Averagableother to this. When this method is called,
it is guaranteed, that other is a subclass of the class of
the object it is called on.
cloneAveragable in class Averagablepublic void buildSingleAverage(Averagable averagable)
AveragableSimpleCriterion 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 | ||||||||