Class GenericDLClassifier
java.lang.Object
rawDeepLearningClassifier.dlClassification.StandardClassifierModel
rawDeepLearningClassifier.dlClassification.genericModel.GenericDLClassifier
- All Implemented Interfaces:
PamSettings,SettingsNameProvider,DLClassiferModel
A generic model - can be load any model but requires manually setting model
*
- Author:
- Jamie Macaulay
-
Nested Class Summary
Nested classes/interfaces inherited from class rawDeepLearningClassifier.dlClassification.StandardClassifierModel
StandardClassifierModel.TaskThread -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the number of output classes.Reference to the dlControlA settings object that can be saved.Get the sound spot worker.Get the sound spot worker.Get the sound spot parameters.Get the generic model worker.Get any UI components for the model.getName()Get the name of the model.intGet the number of output classes.longbooleanisModelType(URI uri) Check whether a URI is compatible with a classification frameworkprotected voidnewResult(StandardPrediction modelResult, GroupedRawData groupedRawData) Send a new result form the thread queue to the process.booleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) voidSet the generic model params.Methods inherited from class rawDeepLearningClassifier.dlClassification.StandardClassifierModel
checkSettingsOK, closeModel, getAllowedDataTypes, getClassNameIDs, getModelStatus, getRawSettingsPane, isDecision, isModelExtensions, millis2Samples, newResult, prepModel, runModel, setModel
-
Constructor Details
-
GenericDLClassifier
-
-
Method Details
-
getNumClasses
public int getNumClasses()Description copied from interface:DLClassiferModelGet the number of output classes.- Specified by:
getNumClassesin interfaceDLClassiferModel- Overrides:
getNumClassesin classStandardClassifierModel- Returns:
- the number of output classes.
-
getUnitName
- Returns:
- A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
-
getUnitType
- Returns:
- A Name specific to the type, e.g. Click detector
-
getClassNames
Description copied from interface:DLClassiferModelGet the number of output classes.- Specified by:
getClassNamesin interfaceDLClassiferModel- Overrides:
getClassNamesin classStandardClassifierModel- Returns:
- the number of output classes.
-
getDLControl
Description copied from interface:DLClassiferModelReference to the dlControl- Specified by:
getDLControlin interfaceDLClassiferModel- Overrides:
getDLControlin classStandardClassifierModel- Returns:
- reference to the DL control.
-
getName
Description copied from interface:DLClassiferModelGet the name of the model.- Returns:
- the name of the model.
-
getModelUI
Description copied from interface:DLClassiferModelGet any UI components for the model. Can be null.- Returns:
- UI components for the model.
-
getDLModelSettings
Description copied from interface:DLClassiferModelA settings object that can be saved.- Returns:
- the settings object.
-
getSettingsReference
- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()- Returns:
- An integer version number for the settings
-
restoreSettings
- Parameters:
pamControlledUnitSettings-- Returns:
- true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
-
getGenericDLParams
Get the sound spot parameters.- Returns:
- sound spot parameters.
-
getGenericDLWorker
Get the generic model worker.- Returns:
- the generic model worker.
-
setGenericModelParams
Set the generic model params.- Parameters:
clone- - the params to set.
-
newResult
Send a new result form the thread queue to the process.- Parameters:
modelResult- - the model result;groupedRawData- - the grouped raw data.
-
isModelType
Description copied from interface:DLClassiferModelCheck whether a URI is compatible with a classification framework- Parameters:
uri- - the URI to the model- Returns:
- true if the model is compatible.
-
getDLWorker
Description copied from class:StandardClassifierModelGet the sound spot worker.- Specified by:
getDLWorkerin classStandardClassifierModel- Returns:
- the sound spot worker.
-
getDLParams
Description copied from class:StandardClassifierModelGet the sound spot worker.- Specified by:
getDLParamsin classStandardClassifierModel- Returns:
- the sound spot worker.
-