com.rapidminer.operator.validation
Class AbstractBootstrappingValidation
java.lang.Object
com.rapidminer.operator.Operator
com.rapidminer.operator.OperatorChain
com.rapidminer.operator.validation.ValidationChain
com.rapidminer.operator.validation.AbstractBootstrappingValidation
- All Implemented Interfaces:
- ConfigurationListener, PreviewListener, ParameterHandler, LoggingHandler
- Direct Known Subclasses:
- BootstrappingValidation, WeightedBootstrappingValidation
public abstract class AbstractBootstrappingValidation
- extends ValidationChain
This validation operator performs several bootstrapped samplings (sampling with replacement)
on the input set and trains a model on these samples. The remaining samples, i.e. those which
were not sampled, build a test set on which the model is evaluated. This process is repeated
for the specified number of iterations after which the average performance is calculated.
The basic setup is the same as for the usual cross validation operator. The first inner
operator must provide a model and the second a performance vector. Please note that this operator
does not regard example weights, i.e. weights specified in a weight column.
- Author:
- Ingo Mierswa
| 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_NUMBER_OF_VALIDATIONS
public static final java.lang.String PARAMETER_NUMBER_OF_VALIDATIONS
- See Also:
- Constant Field Values
PARAMETER_SAMPLE_RATIO
public static final java.lang.String PARAMETER_SAMPLE_RATIO
- See Also:
- Constant Field Values
PARAMETER_AVERAGE_PERFORMANCES_ONLY
public static final java.lang.String PARAMETER_AVERAGE_PERFORMANCES_ONLY
- See Also:
- Constant Field Values
PARAMETER_LOCAL_RANDOM_SEED
public static final java.lang.String PARAMETER_LOCAL_RANDOM_SEED
- See Also:
- Constant Field Values
AbstractBootstrappingValidation
public AbstractBootstrappingValidation(OperatorDescription description)
createMapping
protected abstract int[] createMapping(ExampleSet exampleSet,
int size,
java.util.Random random)
throws OperatorException
- Throws:
OperatorException
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