Class KetosWorker
java.lang.Object
rawDeepLearningClassifier.dlClassification.genericModel.DLModelWorker<StandardPrediction>
rawDeepLearningClassifier.dlClassification.ketos.KetosWorker
Runs a Ketos 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.ketos.KetosModelgetModel()Get the currently loaded mode.booleanCheck whether a model is null or not.makeModelResult(float[] prob, double time) prepModel(StandardModelParams ketosDLParams, 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
-
KetosWorker
public KetosWorker()SoundSpotWorker constructor.
-
-
Method Details
-
prepModel
Prepare the model- Specified by:
prepModelin classDLModelWorker<StandardPrediction>- Returns:
-
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.ketos.KetosModel 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.
-