whistleClassifier.training
Class TrainingDataCollection
java.lang.Object
whistleClassifier.training.TrainingDataCollection
public class TrainingDataCollection
- extends java.lang.Object
A collection of training data for multiple species.
Contains references to a list of several TrainingDataGroups (one per species)
each of which contains references to one or more TrainingDataSets (one per file / storage unit)
- Author:
- Doug Gillespie
- See Also:
TrainingDataGroup,
TrainingDataSet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
trainingDataGroups
private java.util.ArrayList<TrainingDataGroup> trainingDataGroups
currentTrainingStore
private TrainingDataStore currentTrainingStore
trainingStore
private TrainingDataStore trainingStore
whistleClassifierControl
private WhistleClassifierControl whistleClassifierControl
TrainingDataCollection
public TrainingDataCollection(WhistleClassifierControl whistleClassifierControl)
clearStore
public void clearStore()
loadTrainingData
public boolean loadTrainingData(java.lang.String folderName,
boolean subFolders,
boolean useFolderNames,
ProgressInformation progressInformation)
- Load all the training data for all species from a given store.
This functionality should probably be put into another abstract class
so that different types of store can be used. Maniana !
- Parameters:
trainingDataStore -
- Returns:
- true if loaded something successfully
addFileData
private boolean addFileData(java.io.File file,
boolean useFolderNames)
findDataGroup
private TrainingDataGroup findDataGroup(java.lang.String species)
createDataGroup
private TrainingDataGroup createDataGroup(java.lang.String species)
getNumTrainingGroups
public int getNumTrainingGroups()
getTrainingDataGroup
public TrainingDataGroup getTrainingDataGroup(int iGroup)
getSpeciesList
public java.lang.String[] getSpeciesList()
dumpStoreContent
public void dumpStoreContent()