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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Destroy the model.org.jamdev.jdl4pam.genericmodel.GenericModel
getModel()
Generic model.boolean
Check whether a model is null or not.makeModelResult
(float[] prob, double time) void
prepModel
(StandardModelParams genericParams, DLControl dlControl) float[]
runModel
(float[][][] transformedDataStack) 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:
runModel
in classDLModelWorker<StandardPrediction>
-
makeModelResult
- Specified by:
makeModelResult
in classDLModelWorker<StandardPrediction>
-
prepModel
- Specified by:
prepModel
in classDLModelWorker<StandardPrediction>
-
closeModel
public void closeModel()Description copied from class:DLModelWorker
Destroy the model.- Specified by:
closeModel
in classDLModelWorker<StandardPrediction>
-
getModel
public org.jamdev.jdl4pam.genericmodel.GenericModel getModel()Generic model.- Returns:
- the generic model.
-
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.
-