Class GenericDLClassifier

java.lang.Object
rawDeepLearningClassifier.dlClassification.StandardClassifierModel
rawDeepLearningClassifier.dlClassification.genericModel.GenericDLClassifier
All Implemented Interfaces:
PamSettings, SettingsNameProvider, DLClassiferModel

public class GenericDLClassifier extends StandardClassifierModel
A generic model - can be load any model but requires manually setting model *
Author:
Jamie Macaulay
  • Constructor Details Link icon

    • GenericDLClassifier Link icon

      public GenericDLClassifier(DLControl dlControl)
  • Method Details Link icon

    • getNumClasses Link icon

      public int getNumClasses()
      Description copied from interface: DLClassiferModel
      Get the number of output classes.
      Specified by:
      getNumClasses in interface DLClassiferModel
      Overrides:
      getNumClasses in class StandardClassifierModel
      Returns:
      the number of output classes.
    • getUnitName Link icon

      public String getUnitName()
      Returns:
      A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
    • getUnitType Link icon

      public String getUnitType()
      Returns:
      A Name specific to the type, e.g. Click detector
    • getClassNames Link icon

      public DLClassName[] getClassNames()
      Description copied from interface: DLClassiferModel
      Get the number of output classes.
      Specified by:
      getClassNames in interface DLClassiferModel
      Overrides:
      getClassNames in class StandardClassifierModel
      Returns:
      the number of output classes.
    • getDLControl Link icon

      public DLControl getDLControl()
      Description copied from interface: DLClassiferModel
      Reference to the dlControl
      Specified by:
      getDLControl in interface DLClassiferModel
      Overrides:
      getDLControl in class StandardClassifierModel
      Returns:
      reference to the DL control.
    • getName Link icon

      public String getName()
      Description copied from interface: DLClassiferModel
      Get the name of the model.
      Returns:
      the name of the model.
    • getModelUI Link icon

      public GenericModelUI getModelUI()
      Description copied from interface: DLClassiferModel
      Get any UI components for the model. Can be null.
      Returns:
      UI components for the model.
    • getDLModelSettings Link icon

      public Serializable getDLModelSettings()
      Description copied from interface: DLClassiferModel
      A settings object that can be saved.
      Returns:
      the settings object.
    • getSettingsReference Link icon

      public Serializable getSettingsReference()
      Returns:
      The serialisable object that will be stored
    • getSettingsVersion Link icon

      public long getSettingsVersion()
      Returns:
      An integer version number for the settings
    • restoreSettings Link icon

      public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
      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 Link icon

      public GenericModelParams getGenericDLParams()
      Get the sound spot parameters.
      Returns:
      sound spot parameters.
    • getGenericDLWorker Link icon

      public GenericModelWorker getGenericDLWorker()
      Get the generic model worker.
      Returns:
      the generic model worker.
    • setGenericModelParams Link icon

      public void setGenericModelParams(StandardModelParams clone)
      Set the generic model params.
      Parameters:
      clone - - the params to set.
    • newResult Link icon

      protected void newResult(StandardPrediction modelResult, GroupedRawData groupedRawData)
      Send a new result form the thread queue to the process.
      Parameters:
      modelResult - - the model result;
      groupedRawData - - the grouped raw data.
    • isModelType Link icon

      public boolean isModelType(URI uri)
      Description copied from interface: DLClassiferModel
      Check whether a URI is compatible with a classification framework
      Parameters:
      uri - - the URI to the model
      Returns:
      true if the model is compatible.
    • getDLWorker Link icon

      public DLModelWorker<StandardPrediction> getDLWorker()
      Description copied from class: StandardClassifierModel
      Get the sound spot worker.
      Specified by:
      getDLWorker in class StandardClassifierModel
      Returns:
      the sound spot worker.
    • getDLParams Link icon

      public StandardModelParams getDLParams()
      Description copied from class: StandardClassifierModel
      Get the sound spot worker.
      Specified by:
      getDLParams in class StandardClassifierModel
      Returns:
      the sound spot worker.