public class GlobalPoolingLayer extends Layer<org.deeplearning4j.nn.conf.layers.GlobalPoolingLayer>
Constructor and Description |
---|
GlobalPoolingLayer()
Constructor for setting some defaults.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
int |
getPnorm() |
int[] |
getPoolingDimensions() |
PoolingType |
getPoolingType() |
java.lang.String |
globalInfo()
Global info.
|
void |
initializeBackend()
Initialize the DL4J backend.
|
boolean |
isCollapseDimensions() |
java.util.Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setCollapseDimensions(boolean collapseDimensions) |
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setPnorm(int pnorm) |
void |
setPoolingDimensions(int[] poolingDimensions) |
void |
setPoolingType(PoolingType poolingType) |
create, getBackend, getLayerName, setBackend, setLayerName
public GlobalPoolingLayer()
public void initializeBackend()
ApiWrapper
@OptionMetadata(displayName="pooling type", description="The type of pooling to use (default = MAX; options: MAX, AVG, SUM, NONE).", commandLineParamName="poolingType", commandLineParamSynopsis="-poolingType <string>", displayOrder=10) public PoolingType getPoolingType()
public void setPoolingType(PoolingType poolingType)
@OptionMetadata(displayName="pooling dimensions", description="The pooling dimensions (default = [2,2]).", commandLineParamName="poolDimensions", commandLineParamSynopsis="-poolDimensions <int>", displayOrder=4) public int[] getPoolingDimensions()
public void setPoolingDimensions(int[] poolingDimensions)
@OptionMetadata(displayName="pnorm", description="The value of the pnorm parameter (default = 2).", commandLineParamName="pnorm", commandLineParamSynopsis="-pnorm <int>", displayOrder=3) public int getPnorm()
public void setPnorm(int pnorm)
@OptionMetadata(displayName="collapse dimensions", description="Wether to collapse dimensions (default = true).", commandLineParamName="collapseDimensions", commandLineParamSynopsis="-collapseDimensions <boolean>", displayOrder=11) public boolean isCollapseDimensions()
public void setCollapseDimensions(boolean collapseDimensions)
public java.lang.String globalInfo()
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class Layer<org.deeplearning4j.nn.conf.layers.GlobalPoolingLayer>
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class Layer<org.deeplearning4j.nn.conf.layers.GlobalPoolingLayer>
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
setOptions
in class Layer<org.deeplearning4j.nn.conf.layers.GlobalPoolingLayer>
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supported