public class SequentialTrainingSelector extends TrainingSelector
Constructor and Description |
---|
SequentialTrainingSelector() |
Modifier and Type | Method and Description |
---|---|
int[] |
createSections(int iSpecies,
double trainingFraction,
int sectionLength,
double minFreq,
double maxFreq,
int minContourLength)
Tell the training selector to create a new (hopefully randomised)
set of training and test data for a species.
|
int |
getNumTestSets() |
getNumSpecies, getParameterArray, getTotalFragments, getTrainingDataCollection, getWhistleFragmenter, setTrainingDataCollection, setWhistleFragmenter
public int[] createSections(int iSpecies, double trainingFraction, int sectionLength, double minFreq, double maxFreq, int minContourLength)
TrainingSelector
It does not actually have to create the data sets at the moment - if it want's to save memory it can set up appropriate data structures to define what the sets are and then create them when they are asked for later. Whether or not this is possible may depend on the type of randomisation and grouping employed in the concrete class.
trainingFraction
- fraction of data to be used in training (usually 2/3)public int getNumTestSets()
getNumTestSets
in class TrainingSelector