|
|||||||||
| 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.OperatorChain
edu.udo.cs.yale.operator.meta.XVPrediction
public class XVPrediction
Operator chain that splits an ExampleSet into a training and test
sets similar to XValidation, but returns the test set predictions instead of
a performance vector. The inner two operators must be a learner returning a
Model and an operator or operator chain that can apply this model
(usually a model applier)
| Field Summary | |
|---|---|
private static java.lang.Class[] |
INPUT_CLASSES
|
private int |
iteration
|
private int |
number
|
private static java.lang.Class[] |
OUTPUT_CLASSES
|
| Constructor Summary | |
|---|---|
XVPrediction(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
IOObject[] |
apply()
Applies all inner operators. |
private Operator |
getApplier()
Returns the second encapsulated inner operator (or operator chain), i.e. |
InnerOperatorCondition |
getInnerOperatorCondition()
Must return a condition of the IO behaviour of all desired inner operators. |
java.lang.Class[] |
getInputClasses()
returns the the classes this operator provides as output. |
private Operator |
getLearner()
Returns the first encapsulated inner operator (or operator chain), i.e. |
int |
getMaxNumberOfInnerOperators()
Returns the maximum number of innner operators. |
int |
getMinNumberOfInnerOperators()
Returns the minimum number of innner operators. |
int |
getNumberOfSteps()
Returns getNumberOfValidationSteps() * getNumberOfChildrensSteps() + 1. |
int |
getNumberOfValidationSteps()
|
java.lang.Class[] |
getOutputClasses()
returns the the classes this operator expects as input. |
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[] INPUT_CLASSES
private static final java.lang.Class[] OUTPUT_CLASSES
private int number
private int iteration
| Constructor Detail |
|---|
public XVPrediction(OperatorDescription description)
| Method Detail |
|---|
public int getNumberOfValidationSteps()
public int getMaxNumberOfInnerOperators()
getMaxNumberOfInnerOperators in class OperatorChainpublic int getMinNumberOfInnerOperators()
getMinNumberOfInnerOperators in class OperatorChainpublic java.lang.Class[] getInputClasses()
getInputClasses in class Operatorpublic java.lang.Class[] getOutputClasses()
getOutputClasses in class Operatorpublic InnerOperatorCondition getInnerOperatorCondition()
OperatorChainSimpleChainInnerOperatorCondition. More than one
condition should be combined with help of the class
CombinedInnerOperatorCondition.
getInnerOperatorCondition in class OperatorChainprivate Operator getLearner()
private Operator getApplier()
public IOObject[] apply()
throws OperatorException
OperatorChainOperatorChain.clearStepCounter().
apply in class OperatorChainOperatorExceptionpublic int getNumberOfSteps()
getNumberOfSteps in class OperatorChainpublic 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 | ||||||||