Class StandardModelParams

java.lang.Object
rawDeepLearningClassifier.dlClassification.animalSpot.StandardModelParams
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
DelphinIDParams, GenericModelParams, KetosDLParams, SoundSpotParams

public class StandardModelParams extends Object implements Serializable, Cloneable
Parameters for the SoundSpot model.
Author:
Jamie Macaulay
See Also:
  • Field Details

    • serialVersionUID

      public static final long serialVersionUID
      See Also:
    • modelPath

      public String modelPath
      The model path
    • useCUDA

      public boolean useCUDA
      True to use CUDA.
    • useDefaultTransfroms

      public boolean useDefaultTransfroms
      Use default transforms
    • threshold

      public double threshold
      The threshold between zero and one. This is used to allow binary classification.
    • numClasses

      public int numClasses
    • classNames

      public DLClassName[] classNames
      The class names. e.g. porpoise, noise, bat
    • dlTransfromParams

      public List<org.jamdev.jdl4pam.transforms.DLTransfromParams> dlTransfromParams
      List of transforms for the raw data e.g. filtering, spectrogram, spectrogram normalisation etc. This is only used for saving serialised settings
    • dlTransfroms

      public transient ArrayList<org.jamdev.jdl4pam.transforms.DLTransform> dlTransfroms
      The DL custom transforms if the default transforms for the model are not being used.
    • defaultSegmentLen

      public Double defaultSegmentLen
      The default segment length of the model in milliseconds.
    • useDefaultSegLen

      public boolean useDefaultSegLen
      Use the default segment length
    • binaryClassification

      public boolean[] binaryClassification
      Which classes to apply binary classification to.
    • exampleSoundIndex

      public int exampleSoundIndex
      The index of the example sound which should be shown.

      Note: It is a little messy putting this here but otherwise would need a while new settings class for the advanced UI which would need to be linked to this params class somehow and gets very complicated.

  • Constructor Details

    • StandardModelParams

      public StandardModelParams()
  • Method Details

    • setExampleSound

      public void setExampleSound(ExampleSoundFactory.ExampleSoundType soundType)
      Set the example sound that should be associated with parameters.
      Parameters:
      soundType - - the example sound type.
    • setModel

      public static StandardModelParams setModel(URI uri, StandardModelParams standarModelParams)
      Set the URI in standard model params.
      Parameters:
      uri - - the uri to a model
      standarModelParams - - the standard model params.
      Returns:
      the standard model params.
    • clone

      public StandardModelParams clone()
    • toString

      public String toString()
      Overrides:
      toString in class Object