|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.yale.operator.Operator
edu.udo.cs.yale.operator.OperatorChain
edu.udo.cs.yale.operator.validation.ValidationChain
edu.udo.cs.yale.operator.validation.XValidation
public class XValidation
XValidation
encapsulates a cross-validation experiment. The
example set S is split up into number_of_validations
subsets S_i. The inner operators are applied
number_of_validations times using S_i as the test
set (input of the second inner operator) and S\backslash S_i
training set (input of the first inner operator).
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
.
Like other validation schemes the Yale cross validation can use several types of sampling for building the subsets. Linear sampling simply divides the example set into partitions without changing the order of the examples. Shuffled sampling build random subsets from the data. Stratifed sampling builds random subsets and ensures that the class distribution in the subsets is the same as in the whole example set.
Field Summary | |
---|---|
private int |
iteration
|
private int |
number
|
Constructor Summary | |
---|---|
XValidation(OperatorDescription description)
|
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. |
int |
getNumberOfValidationSteps()
Returns the number of validation steps, i.e. the number of times the inner operators of this validation chain are performed. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
Methods inherited from class edu.udo.cs.yale.operator.validation.ValidationChain |
---|
apply, evaluate, getInnerOperatorCondition, getInputClasses, getInputDescription, getMaxNumberOfInnerOperators, getMinNumberOfInnerOperators, getNumberOfSteps, getOutputClasses, learn, setResult |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int number
private int iteration
Constructor Detail |
---|
public XValidation(OperatorDescription description)
Method Detail |
---|
public int getNumberOfValidationSteps()
ValidationChain
getNumberOfValidationSteps
in class ValidationChain
public IOObject[] estimatePerformance(ExampleSet inputSet) throws OperatorException
ValidationChain
estimatePerformance
in class ValidationChain
OperatorException
public java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes
in class ValidationChain
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |