|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.Operator
edu.udo.cs.yale.operator.visualization.ExperimentLogOperator
public class ExperimentLogOperator
This operator records almost arbitrary data. It can written to a file which
can be read e.g. by gnuplot. Alternatively, the collected data can be plotted
by the GUI. This is even possible during experiment runtime (i.e. online
plotting).
Parameters in the list log are interpreted as follows: The
key gives the name for the column name (e.g. for use in the
plotter). The value specifies where to retrieve the value from.
This is best explained by an example:
operator.Evaluator.value.absolute, the
ExperimentLogOperator looks up the operator with the name
Evaluator. If this operator is a
PerformanceEvaluator, it has a
value named absolute which gives the absolute error of the last
evaluation. This value is queried by the ExperimentLogOperatoroperator.SVMLearner.parameter.C, the
ExperimentLogOperator looks up the parameter C of the operator
named SVMLearner.
PerformanceVector)| Field Summary | |
|---|---|
private static java.lang.Class[] |
OUTPUT_CLASSES
|
private java.lang.String[] |
valueNames
|
| Constructor Summary | |
|---|---|
ExperimentLogOperator(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
IOObject[] |
apply()
Implement this method in subclasses. |
void |
experimentFinished()
Called at the end of the experiment. |
void |
experimentStarts()
Called when the experiment starts. |
private void |
fetchAllValues()
|
private double |
fetchValue(java.lang.String name,
int column)
|
java.lang.Class[] |
getInputClasses()
Returns the classes that are needed as input. |
java.lang.Class[] |
getOutputClasses()
Returns the classes that are guaranteed to be returned by apply() as additional output. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.Class[] OUTPUT_CLASSES
private java.lang.String[] valueNames
| Constructor Detail |
|---|
public ExperimentLogOperator(OperatorDescription description)
| Method Detail |
|---|
private double fetchValue(java.lang.String name,
int column)
throws UndefinedParameterError
UndefinedParameterErrorpublic void experimentStarts()
Operator
experimentStarts in class Operatorpublic java.lang.Class[] getInputClasses()
OperatorOperator.getOutputClasses() and
Operator.apply() if this is necessary. This default behavior can be
changed by overriding Operator.getInputDescription(Class). Subclasses
which implement this method should not make use of parameters since this
method is invoked by getParameterTypes(). Therefore, parameters are not
fully available at this point of time and this might lead to exceptions.
Please use InputDescriptions instead.
getInputClasses in class Operatorpublic java.lang.Class[] getOutputClasses()
OperatorOperator.getInputDescription(Class) and can be changed by
overwriting this method. Objects which are not consumed must not be
defined as additional output in this method. May be null or an empy array
(no additional output is produced).
getOutputClasses in class Operator
public IOObject[] apply()
throws OperatorException
Operator
apply in class OperatorOperatorException
private void fetchAllValues()
throws UndefinedParameterError
UndefinedParameterErrorpublic void experimentFinished()
Operator
experimentFinished in class Operatorpublic java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in class Operator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||