Class StandardModelParams
java.lang.Object
rawDeepLearningClassifier.dlClassification.animalSpot.StandardModelParams
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
DelphinIDParams
,GenericModelParams
,KetosDLParams
,SoundSpotParams
Parameters for the SoundSpot model.
- Author:
- Jamie Macaulay
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionboolean[]
Which classes to apply binary classification to.The class names.The default segment length of the model in milliseconds.List<org.jamdev.jdl4pam.transforms.DLTransfromParams>
List of transforms for the raw data e.g.ArrayList<org.jamdev.jdl4pam.transforms.DLTransform>
The DL custom transforms if the default transforms for the model are not being used.int
The index of the example sound which should be shown.The model pathint
static final long
double
The threshold between zero and one.boolean
True to use CUDA.boolean
Use the default segment lengthboolean
Use default transforms -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
void
Set the example sound that should be associated with parameters.static StandardModelParams
setModel
(URI uri, StandardModelParams standarModelParams) Set the URI in standard model params.toString()
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
modelPath
The model path -
useCUDA
public boolean useCUDATrue to use CUDA. -
useDefaultTransfroms
public boolean useDefaultTransfromsUse default transforms -
threshold
public double thresholdThe threshold between zero and one. This is used to allow binary classification. -
numClasses
public int numClasses -
classNames
The class names. e.g. porpoise, noise, bat -
dlTransfromParams
List of transforms for the raw data e.g. filtering, spectrogram, spectrogram normalisation etc. This is only used for saving serialised settings -
dlTransfroms
The DL custom transforms if the default transforms for the model are not being used. -
defaultSegmentLen
The default segment length of the model in milliseconds. -
useDefaultSegLen
public boolean useDefaultSegLenUse the default segment length -
binaryClassification
public boolean[] binaryClassificationWhich classes to apply binary classification to. -
exampleSoundIndex
public int exampleSoundIndexThe 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
Set the example sound that should be associated with parameters.- Parameters:
soundType
- - the example sound type.
-
setModel
Set the URI in standard model params.- Parameters:
uri
- - the uri to a modelstandarModelParams
- - the standard model params.- Returns:
- the standard model params.
-
clone
-
toString
-