Class GenericModelWorker
java.lang.Object
rawDeepLearningClassifier.dlClassification.genericModel.DLModelWorker<StandardPrediction>
rawDeepLearningClassifier.dlClassification.genericModel.GenericModelWorker
- Direct Known Subclasses:
ArchiveModelWorker
Generic model worker.
- 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.genericmodel.GenericModelgetModel()Generic model.booleanCheck whether a model is null or not.makeModelResult(float[] prob, double time) prepModel(StandardModelParams genericParams, DLControl dlControl) float[]runModel(float[][][] transformedDataStack) protected voidsetWaveFreqModel(StandardModelParams genericParams) Methods inherited from class rawDeepLearningClassifier.dlClassification.genericModel.DLModelWorker
dataUnits2ModelInput, getModelTransforms, isEnableSoftMax, model2DLTransforms, runModel, setEnableSoftMax, setModelTransforms
-
Constructor Details
-
GenericModelWorker
public GenericModelWorker()
-
-
Method Details
-
runModel
public float[] runModel(float[][][] transformedDataStack) - Specified by:
runModelin classDLModelWorker<StandardPrediction>
-
makeModelResult
- Specified by:
makeModelResultin classDLModelWorker<StandardPrediction>
-
prepModel
- Specified by:
prepModelin classDLModelWorker<StandardPrediction>
-
setWaveFreqModel
-
closeModel
public void closeModel()Description copied from class:DLModelWorkerDestroy the model.- Specified by:
closeModelin classDLModelWorker<StandardPrediction>
-
getModel
public org.jamdev.jdl4pam.genericmodel.GenericModel getModel()Generic model.- Returns:
- the generic model.
-
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.
-