Class TrainingObjectPoolSplit
java.lang.Object
de.uni_trier.wi2.procake.data.trainingObjectPool.TrainingObjectPoolSplit
Used to specify how the data is split to create a
TrainingObjectPool
.- Author:
- Maximilian Hoffmann
-
Constructor Summary
ConstructorDescriptionTrainingObjectPoolSplit
(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
Modifier and TypeMethodDescription
-
Constructor Details
-
TrainingObjectPoolSplit
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
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
-
-
Method Details
-
getTrainQuantity
-
getTestQuantity
-
getValidationQuantity
-