Class KetosClassifier2
java.lang.Object
rawDeepLearningClassifier.dlClassification.StandardClassifierModel
rawDeepLearningClassifier.dlClassification.archiveModel.ArchiveModelClassifier
rawDeepLearningClassifier.dlClassification.ketos.KetosClassifier2
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
,DLClassiferModel
Classifier which uses deep learning models from Meridian's Ketos framework.
Ketos uses TensorFlow models and packages them inside a zipped .ktpb file which contains a JSON file for the transforms and a .pb model. Users can select a .ktpb file - PAMGaurd will decompress it, find the JSON file, set up the transforms and load the model.
Details on Meridians framework can be found at https://meridian.cs.dal.ca/2015/04/12/ketos/
KetosClassifier2 is a more abstracted version of KetosClassifer which inherits most functionality from ArchiveModel
- Author:
- Jamie Macaulay
-
Nested Class Summary
Nested classes/interfaces inherited from class rawDeepLearningClassifier.dlClassification.StandardClassifierModel
StandardClassifierModel.TaskThread
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class rawDeepLearningClassifier.dlClassification.archiveModel.ArchiveModelClassifier
getDLModelSettings, getDLParams, getDLWorker, getKetosParams, getModelUI, getSettingsReference, getSettingsVersion, getUnitName, getUnitType, isModelType, restoreSettings, setDLParams
Methods inherited from class rawDeepLearningClassifier.dlClassification.StandardClassifierModel
checkSettingsOK, closeModel, getClassNameIDs, getClassNames, getDLControl, getModelStatus, getNumClasses, getRawSettingsPane, isDecision, isModelExtensions, millis2Samples, prepModel, runModel, setModel
-
Field Details
-
MODEL_NAME
-
-
Constructor Details
-
KetosClassifier2
-
-
Method Details
-
getFileExtensions
Description copied from class:ArchiveModelClassifier
Get the file extensions for the model type.- Overrides:
getFileExtensions
in classArchiveModelClassifier
- Returns:
- the file extension.
-
getName
Description copied from interface:DLClassiferModel
Get the name of the model.- Specified by:
getName
in interfaceDLClassiferModel
- Overrides:
getName
in classArchiveModelClassifier
- Returns:
- the name of the model.
-
getModelWorker
Description copied from class:ArchiveModelClassifier
Get the KetosWorker. this handles loading and running the Ketos model.- Overrides:
getModelWorker
in classArchiveModelClassifier
- Returns:
- the Ketos worker.
-
makeParams
Create the parameters class for the model. This can be overridden for bespoke parameters. classes.- Overrides:
makeParams
in classArchiveModelClassifier
- Returns:
- a new parameters class object.
-