com.rapidminer.operator.validation
Class RandomSplitValidationChain
java.lang.Object
com.rapidminer.operator.Operator
com.rapidminer.operator.OperatorChain
com.rapidminer.operator.validation.ValidationChain
com.rapidminer.operator.validation.RandomSplitValidationChain
- All Implemented Interfaces:
- ConfigurationListener, PreviewListener, ParameterHandler, LoggingHandler
public class RandomSplitValidationChain
- extends ValidationChain
A RandomSplitValidationChain splits up the example set into a
training and test set and evaluates the model. The first inner operator must
accept an ExampleSet while the second must
accept an ExampleSet and the output of the
first (which is in most cases a Model) and
must produce a PerformanceVector.
This validation operator provides several values which can be logged
by means of a ProcessLogOperator. All performance estimation operators
of RapidMiner provide access to the average values calculated during the estimation.
Since the operator cannot ensure the names of the delivered criteria, the
ProcessLog operator can access the values via the generic value names:
- performance: the value for the main criterion calculated by this validation operator
- performance1: the value of the first criterion of the performance vector calculated
- performance2: the value of the second criterion of the performance vector calculated
- performance3: the value of the third criterion of the performance vector calculated
- for the main criterion, also the variance and the standard deviation can be
accessed where applicable.
- Author:
- Simon Fischer, Ingo Mierswa
ingomierswa Exp $
|
Method Summary |
IOObject[] |
estimatePerformance(ExampleSet inputSet)
This is the main method of the validation chain and must be implemented
to estimate a performance of inner operators on the given example set. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of
this operator. |
| Methods inherited from class com.rapidminer.operator.validation.ValidationChain |
apply, evaluate, evaluate, getInnerOperatorCondition, getInputClasses, getInputDescription, getLearner, getMaxNumberOfInnerOperators, getMinNumberOfInnerOperators, getOutputClasses, learn, setResult |
| Methods inherited from class com.rapidminer.operator.OperatorChain |
addAddListener, addOperator, addOperator, checkDeprecations, checkIO, checkNumberOfInnerOperators, checkProperties, clearErrorList, cloneOperator, createExperimentTree, createProcessTree, getAllInnerOperators, getIndexOfOperator, getInnerOperatorForName, getInnerOperatorsXML, getNumberOfAllOperators, getNumberOfOperators, getOperator, getOperatorFromAll, getOperators, performAdditionalChecks, processFinished, processStarts, registerOperator, removeAddListener, removeOperator, shouldAddNonConsumedInput, shouldReturnInnerOutput, unregisterOperator |
| Methods inherited from class com.rapidminer.operator.Operator |
addError, addValue, addWarning, apply, checkForStop, createExperimentTree, createFromXML, createMarkedExperimentTree, createMarkedProcessTree, createProcessTree, getAddOnlyAdditionalOutput, getApplyCount, getDeliveredOutputClasses, getDeprecationInfo, getDesiredInputClasses, getEncoding, getErrorList, getExperiment, getInput, getInput, getInput, getIOContainerForInApplyLoopBreakpoint, getIODescription, getLog, getName, getOperatorClassName, getOperatorDescription, getParameter, getParameterAsBoolean, getParameterAsColor, getParameterAsDouble, getParameterAsFile, getParameterAsFile, getParameterAsInputStream, getParameterAsInt, getParameterAsMatrix, getParameterAsString, getParameterList, getParameters, getParameterType, getParent, getProcess, getStartTime, getStatus, getUserDescription, getValue, getValues, getXML, hasBreakpoint, hasBreakpoint, hasInput, inApplyLoop, isDebugMode, isEnabled, isExpanded, isParallel, isParameterSet, log, logError, logNote, logWarning, register, remove, rename, resume, setApplyCount, setBreakpoint, setEnabled, setExpanded, setInput, setListParameter, setOperatorParameters, setParameter, setParameters, setParent, setUserDescription, toString, writeXML |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PARAMETER_SPLIT_RATIO
public static final java.lang.String PARAMETER_SPLIT_RATIO
- See Also:
- Constant Field Values
PARAMETER_SAMPLING_TYPE
public static final java.lang.String PARAMETER_SAMPLING_TYPE
- See Also:
- Constant Field Values
PARAMETER_LOCAL_RANDOM_SEED
public static final java.lang.String PARAMETER_LOCAL_RANDOM_SEED
- See Also:
- Constant Field Values
RandomSplitValidationChain
public RandomSplitValidationChain(OperatorDescription description)
estimatePerformance
public IOObject[] estimatePerformance(ExampleSet inputSet)
throws OperatorException
- Description copied from class:
ValidationChain
- This is the main method of the validation chain and must be implemented
to estimate a performance of inner operators on the given example set.
The implementation can make use of the provided helper methods in this
class.
- Specified by:
estimatePerformance in class ValidationChain
- Throws:
OperatorException
getParameterTypes
public java.util.List<ParameterType> getParameterTypes()
- Description copied from class:
Operator
- Returns a list of ParameterTypes describing the parameters of
this operator. The default implementation returns an empty list if no
input objects can be retained and special parameters for those input
objects which can be prevented from being consumed.
- Specified by:
getParameterTypes in interface ParameterHandler- Overrides:
getParameterTypes in class ValidationChain
Copyright © 2001-2009 by Rapid-I