Class SoundSpotWorker
java.lang.Object
rawDeepLearningClassifier.dlClassification.genericModel.DLModelWorker<StandardPrediction>
rawDeepLearningClassifier.dlClassification.animalSpot.SoundSpotWorker
Runs the deep learning model and performs feature extraction.
 
- Author:
 - Jamie Macaulay
 
- 
Field Summary
Fields inherited from class rawDeepLearningClassifier.dlClassification.genericModel.DLModelWorker
MAX_QUEUE_SIZE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidDestroy the model.org.jamdev.jdl4pam.animalSpot.AnimalSpotModelgetModel()Get the currently loaded mode.booleanCheck whether a model is null or not.makeModelResult(float[] prob, double time) prepModel(StandardModelParams soundSpotParams, DLControl dlControl) Prepare the modelfloat[]runModel(float[][][] transformedDataStack) Methods inherited from class rawDeepLearningClassifier.dlClassification.genericModel.DLModelWorker
dataUnits2ModelInput, getModelTransforms, isEnableSoftMax, model2DLTransforms, runModel, setEnableSoftMax, setModelTransforms 
- 
Constructor Details
- 
SoundSpotWorker
public SoundSpotWorker()SoundSpotWorker constructor. 
 - 
 - 
Method Details
- 
prepModel
Prepare the model- Specified by:
 prepModelin classDLModelWorker<StandardPrediction>
 - 
runModel
public float[] runModel(float[][][] transformedDataStack) - Specified by:
 runModelin classDLModelWorker<StandardPrediction>
 - 
makeModelResult
- Specified by:
 makeModelResultin classDLModelWorker<StandardPrediction>
 - 
closeModel
public void closeModel()Destroy the model.- Specified by:
 closeModelin classDLModelWorker<StandardPrediction>
 - 
getModel
public org.jamdev.jdl4pam.animalSpot.AnimalSpotModel getModel()Get the currently loaded mode.- Returns:
 - - the currently loaded mode.
 
 - 
isModelNull
public boolean isModelNull()Description copied from class:DLModelWorkerCheck whether a model is null or not.- Specified by:
 isModelNullin classDLModelWorker<StandardPrediction>- Returns:
 - true of the model is null.
 
 
 -