Class DelphinIDWorker
java.lang.Object
rawDeepLearningClassifier.dlClassification.genericModel.DLModelWorker<StandardPrediction>
rawDeepLearningClassifier.dlClassification.genericModel.GenericModelWorker
rawDeepLearningClassifier.dlClassification.archiveModel.ArchiveModelWorker
rawDeepLearningClassifier.dlClassification.delphinID.DelphinIDWorker
- Direct Known Subclasses:
 DelphinIDWhistleTest.DelphinIDWorkerTest
The delphinID worker. This worker has two additional tasks compared to it's
 parent class.
 
- Read the the JSON parameters that transform that converts a group of clicks or whistles to a transform
 - Insert the custon transform at the start of the transforms list before data are transformed
 
- Author:
 - Jamie Macaulay
 
- 
Field Summary
Fields inherited from class rawDeepLearningClassifier.dlClassification.genericModel.DLModelWorker
MAX_QUEUE_SIZE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfloat[][][]dataUnits2ModelInput(ArrayList<? extends PamDataUnit> dataUnits, float sampleRate, int iChan) Convert a list of data units to a stack if images.Get the whislte to image parameters.prepModel(StandardModelParams dlParams, DLControl dlControl) Prepare the model.Methods inherited from class rawDeepLearningClassifier.dlClassification.archiveModel.ArchiveModelWorker
closeModel, getModel, isModelNull, loadModel, makeModelParams, makeModelResult, setModelMethods inherited from class rawDeepLearningClassifier.dlClassification.genericModel.GenericModelWorker
runModel, setWaveFreqModelMethods inherited from class rawDeepLearningClassifier.dlClassification.genericModel.DLModelWorker
getModelTransforms, isEnableSoftMax, model2DLTransforms, runModel, setEnableSoftMax, setModelTransforms 
- 
Constructor Details
- 
DelphinIDWorker
public DelphinIDWorker() 
 - 
 - 
Method Details
- 
getWhistleTransform
Get the whislte to image parameters.- Returns:
 
 - 
prepModel
Description copied from class:ArchiveModelWorkerPrepare the model. Note it is important to put a synchonized here or the model loading can fail.- Overrides:
 prepModelin classArchiveModelWorker
 - 
dataUnits2ModelInput
public float[][][] dataUnits2ModelInput(ArrayList<? extends PamDataUnit> dataUnits, float sampleRate, int iChan) Description copied from class:DLModelWorkerConvert a list of data units to a stack if images.- Overrides:
 dataUnits2ModelInputin classDLModelWorker<StandardPrediction>- Parameters:
 dataUnits- - the data units.sampleRate- - the sample rateiChan- - the channels- Returns:
 - a stack of images for input into a deep learning model.
 
 
 -