public class CustomModelSetup
extends java.lang.Object
implements java.io.Serializable, weka.core.OptionHandler
Constructor and Description |
---|
CustomModelSetup() |
Modifier and Type | Method and Description |
---|---|
int |
getInputChannels() |
int |
getInputHeight() |
int |
getInputWidth() |
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
java.io.File |
getSerializedModelFile() |
java.util.Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
resetModelFilepath()
Reset the model filepath to the default.
|
void |
setInputChannels(int inputChannels) |
void |
setInputHeight(int inputHeight) |
void |
setInputWidth(int inputWidth) |
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setSerializedModelFile(java.io.File serializedModelFile) |
void |
setUseCustomSetup(boolean useCustomSetup) |
public void setUseCustomSetup(boolean useCustomSetup)
public void resetModelFilepath()
@OptionMetadata(displayName="Serialized model file", description="Pointer to file of saved Dl4jMlpClassifier", commandLineParamName="model-file", commandLineParamSynopsis="-model-file <file path>", displayOrder=0) public java.io.File getSerializedModelFile()
public void setSerializedModelFile(java.io.File serializedModelFile)
@OptionMetadata(displayName="Number of input channels", description="Number of channels for input images to this model", commandLineParamName="channels", commandLineParamSynopsis="-channels <number>", displayOrder=1) public int getInputChannels()
public void setInputChannels(int inputChannels)
@OptionMetadata(displayName="Input image width", description="Width of input images to this model", commandLineParamName="width", commandLineParamSynopsis="-width <number>", displayOrder=2) public int getInputWidth()
public void setInputWidth(int inputWidth)
@OptionMetadata(displayName="Input image height", description="Height of input images to this model", commandLineParamName="height", commandLineParamSynopsis="-height <number>", displayOrder=3) public int getInputHeight()
public void setInputHeight(int inputHeight)
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supported