Class TrainingObjectPoolSplit


  • public class TrainingObjectPoolSplit
    extends Object
    Used to specify how the data is split to create a TrainingObjectPool.
    Author:
    Maximilian Hoffmann
    • Constructor Detail

      • TrainingObjectPoolSplit

        public TrainingObjectPoolSplit​(Double testRatio,
                                       WriteableObjectPool targetPool)
        Use this constructor to either split into two pools (training and testing) or do not split at all (only training). This method is used to split according to a ratio.
        Parameters:
        testRatio - if not null, pool is split into training and testing according to specified ratio
        targetPool - the pool that this split should be applied to. Is used to check constraints
      • TrainingObjectPoolSplit

        public TrainingObjectPoolSplit​(Integer testQuantity,
                                       WriteableObjectPool targetPool)
        Use this constructor to either split into two pools (training and testing) or do not split at all (only training). This method is used to split according to a quantity.
        Parameters:
        testQuantity - if not null, pool is split into training and testing according to specified quantity
        targetPool - the pool that this split should be applied to. Is used to check constraints
      • TrainingObjectPoolSplit

        public TrainingObjectPoolSplit​(Double testRatio,
                                       Double validationRatio,
                                       WriteableObjectPool targetPool)
        Use this constructor to either split into three pools (training, testing, validation), two pools (training and testing), or do not split at all (only training). This method is used to split according to a ratio.
        Parameters:
        testRatio - if not null, pool is split into training, testing, validation or training and testing according to specified ratio
        validationRatio - if not null, pool is split into training, testing, and validation according to specified ratio
        targetPool - the pool that this split should be applied to. Is used to check constraints
      • TrainingObjectPoolSplit

        public TrainingObjectPoolSplit​(Integer testQuantity,
                                       Integer validationQuantity,
                                       WriteableObjectPool targetPool)
        Use this constructor to either split into three models (training, testing, validation), into two pools (training and testing), or do not split at all (only training). This method is used to split according to a quantity.
        Parameters:
        testQuantity - if not null, pool is split into training, testing, validation or training and testing according to specified quantities
        validationQuantity - if not null, pool is split into training, testing, and validation according to specified quantities
        targetPool - the pool that this split should be applied to. Is used to check constraints
    • Method Detail

      • getTrainQuantity

        public Integer getTrainQuantity()
      • getTestQuantity

        public Integer getTestQuantity()
      • getValidationQuantity

        public Integer getValidationQuantity()