Class TrainingObjectPoolSplit
- java.lang.Object
-
- de.uni_trier.wi2.procake.data.trainingObjectPool.TrainingObjectPoolSplit
-
public class TrainingObjectPoolSplit extends Object
Used to specify how the data is split to create aTrainingObjectPool.- Author:
- Maximilian Hoffmann
-
-
Constructor Summary
Constructors Constructor Description 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).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).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).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).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetTestQuantity()IntegergetTrainQuantity()IntegergetValidationQuantity()
-
-
-
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 ratiotargetPool- 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 quantitytargetPool- 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 ratiovalidationRatio- if not null, pool is split into training, testing, and validation according to specified ratiotargetPool- 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 quantitiesvalidationQuantity- if not null, pool is split into training, testing, and validation according to specified quantitiestargetPool- the pool that this split should be applied to. Is used to check constraints
-
-