public class PartitionGenerator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
_5x2
Constant representing 5x2 of Dietterich partition
|
static int |
_DOBSCV_FOLD
Constant representing K-Fold Distribution Optimally Balanced Stratified Cross Validation partition
|
static int |
_HOLDOUT
Constant representing Holdout partition
|
static int |
_K_FOLD
Constant representing KFold partition
|
Constructor and Description |
---|
PartitionGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
partition(int partitionType,
java.lang.String originalName,
java.lang.String newName,
long seed,
int nOfPartitions,
int totalFractions)
Partitions a dataset
|
public static int _K_FOLD
public static int _HOLDOUT
public static int _5x2
public static int _DOBSCV_FOLD
public void partition(int partitionType, java.lang.String originalName, java.lang.String newName, long seed, int nOfPartitions, int totalFractions)
Partitions a dataset
partitionType
- Type of partition (see constants)originalName
- Initial name of the filenewName
- New name of the files generated with the partitionseed
- Seed for random numbersnOfPartitions
- Number of partitionstotalFractions
- Number of fractions