Class FoldBasedSubsetInstruction

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    SplitInstruction

    public abstract class FoldBasedSubsetInstruction
    extends Instruction
    Instruction to track a fold-based subset computation for a ReproducibleInstances object. The original dataset is split into folds using the specified fold technique, e.g., 10-fold cross validation or a simple stratified split. Then, a subset of the created folds is joined as to determine the desired subset of the original set. For example, to obtain the training data in a 5-fold cross validation if the test data corresponds to the 3rd fold, the foldTechnique is "(5, )", and the outIndices are "0,1,3,4"
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FoldBasedSubsetInstruction​(java.lang.String foldTechnique)
      Constructor to create a split Instruction that can be converted into json.
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FoldBasedSubsetInstruction

        public FoldBasedSubsetInstruction​(java.lang.String foldTechnique)
        Constructor to create a split Instruction that can be converted into json.
        Parameters:
        foldTechnique - method used to compute the folds