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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Destroy the model.org.jamdev.jdl4pam.ketos.KetosModel
getModel()
Get the currently loaded mode.boolean
Check whether a model is null or not.makeModelResult
(float[] prob, double time) void
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:
prepModel
in classDLModelWorker<StandardPrediction>
-
runModel
public float[] runModel(float[][][] transformedDataStack) - Specified by:
runModel
in classDLModelWorker<StandardPrediction>
-
makeModelResult
- Specified by:
makeModelResult
in classDLModelWorker<StandardPrediction>
-
closeModel
public void closeModel()Destroy the model.- Specified by:
closeModel
in 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:DLModelWorker
Check whether a model is null or not.- Specified by:
isModelNull
in classDLModelWorker<StandardPrediction>
- Returns:
- true of the model is null.
-