|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.Operator
com.rapidminer.operator.performance.AbstractPerformanceEvaluator
com.rapidminer.operator.performance.PerformanceEvaluator
public class PerformanceEvaluator
A performance evaluator is an operator that expects a test ExampleSet
as input, whose elements have both true and predicted labels, and delivers as
output a list of performance values according to a list of performance
criteria that it calculates. If an input performance vector was already
given, this is used for keeping the performance values.
All of the performance criteria can be switched on using boolean parameters. Their values can be queried by a ProcessLogOperator using the same names. The main criterion is used for comparisons and need to be specified only for processes where performance vectors are compared, e.g. feature selection processes. If no other main criterion was selected the first criterion in the resulting performance vector will be assumed to be the main criterion.
The resulting performance vectors are usually compared with a standard
performance comparator which only compares the fitness values of the main
criterion. Other implementations than this simple comparator can be
specified using the parameter comparator_class. This may for
instance be useful if you want to compare performance vectors according to
the weighted sum of the individual criteria. In order to implement your own
comparator, simply subclass PerformanceComparator. Please note that
for true multi-objective optimization usually another selection scheme is
used instead of simply replacing the performance comparator.
Additional user-defined implementations of PerformanceCriterion
can be specified by using the parameter list
additional_performance_criteria. Each key/value pair in this list
must specify a fully qualified classname (as the key), and a string
parameter (as value) that is passed to the constructor. Please make sure
that the class files are in the classpath (this is the case if the
implementations are supplied by a plugin) and that they implement a
one-argument constructor taking a string parameter. It must also be ensured
that these classes extend MeasuredPerformance since the PerformanceEvaluator
operator will only support these criteria. Please note that only the
first three user defined criteria can be used as logging value with names
"user1", ... , "user3".
| Field Summary | |
|---|---|
static java.lang.String |
PARAMETER_CLASS_WEIGHTS
The parameter name for "The weights for all classes (first column: class name, second column: weight), empty: using 1 for all classes. |
| Fields inherited from class com.rapidminer.operator.performance.AbstractPerformanceEvaluator |
|---|
PARAMETER_COMPARATOR_CLASS, PARAMETER_MAIN_CRITERION, PARAMETER_SKIP_UNDEFINED_LABELS |
| Constructor Summary | |
|---|---|
PerformanceEvaluator(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
protected void |
checkCompatibility(ExampleSet exampleSet)
Does nothing. |
protected double[] |
getClassWeights(Attribute label)
Delivers class weights for performance criteria which implement the ClassWeightedPerformance interface. |
java.util.List<PerformanceCriterion> |
getCriteria()
Delivers the list of criteria which is able for this operator. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
| Methods inherited from class com.rapidminer.operator.performance.AbstractPerformanceEvaluator |
|---|
apply, evaluate, evaluate, getInputClasses, getInputDescription, getOutputClasses, init, showComparatorParameter, showCriteriaParameter, showSkipNaNLabelsParameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PARAMETER_CLASS_WEIGHTS
| Constructor Detail |
|---|
public PerformanceEvaluator(OperatorDescription description)
| Method Detail |
|---|
protected void checkCompatibility(ExampleSet exampleSet)
throws OperatorException
checkCompatibility in class AbstractPerformanceEvaluatorOperatorException
protected double[] getClassWeights(Attribute label)
throws UndefinedParameterError
AbstractPerformanceEvaluatorClassWeightedPerformance interface. Might return null (for example
for regression task performance evaluators).
getClassWeights in class AbstractPerformanceEvaluatorUndefinedParameterErrorpublic java.util.List<PerformanceCriterion> getCriteria()
AbstractPerformanceEvaluator
getCriteria in class AbstractPerformanceEvaluatorpublic java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class AbstractPerformanceEvaluator
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||