Class DummyClassifier
java.lang.Object
rawDeepLearningClassifier.dlClassification.dummyClassifier.DummyClassifier
- All Implemented Interfaces:
 DLClassiferModel
Classifier which returns a random results. Used for debugging and testing.
- Author:
 - Jamie Macaulay
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidCalled whenever PAMGuard stops.Get the allowed data types for the model.The can be null in which case only data units with raw data are allowed.Get the number of output classes.Reference to the dlControlA settings object that can be saved.Check whether a model has been selected and can be loaded successfully.Get any UI components for the model.getName()Get the name of the model.intGet the number of output classes.booleanisModelType(URI uri) Check whether a URI is compatible with a classification frameworkvoidPrepare the model.ArrayList<? extends PredictionResult> runModel(ArrayList<? extends PamDataUnit> rawDataUnit) Run the deep learning model on a list of grouped raw data units and return a corresponding list of model results.Set and load the model. 
- 
Constructor Details
- 
DummyClassifier
public DummyClassifier() 
 - 
 - 
Method Details
- 
prepModel
public void prepModel()Description copied from interface:DLClassiferModelPrepare the model. This is called on PAMGuard start up and before processing in viewer mode.- Specified by:
 prepModelin interfaceDLClassiferModel
 - 
closeModel
public void closeModel()Description copied from interface:DLClassiferModelCalled whenever PAMGuard stops.- Specified by:
 closeModelin interfaceDLClassiferModel
 - 
getName
Description copied from interface:DLClassiferModelGet the name of the model.- Specified by:
 getNamein interfaceDLClassiferModel- Returns:
 - the name of the model.
 
 - 
getModelUI
Description copied from interface:DLClassiferModelGet any UI components for the model. Can be null.- Specified by:
 getModelUIin interfaceDLClassiferModel- Returns:
 - UI components for the model.
 
 - 
getDLModelSettings
Description copied from interface:DLClassiferModelA settings object that can be saved.- Specified by:
 getDLModelSettingsin interfaceDLClassiferModel- Returns:
 - the settings object.
 
 - 
getNumClasses
public int getNumClasses()Description copied from interface:DLClassiferModelGet the number of output classes.- Specified by:
 getNumClassesin interfaceDLClassiferModel- Returns:
 - the number of output classes.
 
 - 
getClassNames
Description copied from interface:DLClassiferModelGet the number of output classes.- Specified by:
 getClassNamesin interfaceDLClassiferModel- Returns:
 - the number of output classes.
 
 - 
runModel
Description copied from interface:DLClassiferModelRun the deep learning model on a list of grouped raw data units and return a corresponding list of model results.Note the reason we use list is that often it is more efficient to get a model to predict a stacked group of inputs rather than one at a time.
- Specified by:
 runModelin interfaceDLClassiferModel- Returns:
 - the deep learning model.
 
 - 
getDLControl
Description copied from interface:DLClassiferModelReference to the dlControl- Specified by:
 getDLControlin interfaceDLClassiferModel- Returns:
 - reference to the DL control.
 
 - 
getModelStatus
Description copied from interface:DLClassiferModelCheck whether a model has been selected and can be loaded successfully.- Specified by:
 getModelStatusin interfaceDLClassiferModel
 - 
isModelType
Description copied from interface:DLClassiferModelCheck whether a URI is compatible with a classification framework- Specified by:
 isModelTypein interfaceDLClassiferModel- Parameters:
 uri- - the URI to the model- Returns:
 - true if the model is compatible.
 
 - 
setModel
Description copied from interface:DLClassiferModelSet and load the model.- Specified by:
 setModelin interfaceDLClassiferModel- Returns:
 - the status of the model e.g. if there has been an error loading
 
 - 
getAllowedDataTypes
Description copied from interface:DLClassiferModelGet the allowed data types for the model.The can be null in which case only data units with raw data are allowed.- Specified by:
 getAllowedDataTypesin interfaceDLClassiferModel- Returns:
 - a list of the allowed data types.
 
 
 -