public class NeuralLayer extends PMMLObject implements HasExtensions
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://www.dmg.org/PMML-4_2}Extension" maxOccurs="unbounded" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}Neuron" maxOccurs="unbounded"/>
</sequence>
<attribute name="numberOfNeurons" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
<attribute name="activationFunction" type="{http://www.dmg.org/PMML-4_2}ACTIVATION-FUNCTION" />
<attribute name="threshold" type="{http://www.dmg.org/PMML-4_2}REAL-NUMBER" />
<attribute name="width" type="{http://www.dmg.org/PMML-4_2}REAL-NUMBER" />
<attribute name="altitude" type="{http://www.dmg.org/PMML-4_2}REAL-NUMBER" />
<attribute name="normalizationMethod" type="{http://www.dmg.org/PMML-4_2}NN-NORMALIZATION-METHOD" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected ActivationFunctionType |
activationFunction |
protected java.lang.Double |
altitude |
protected java.util.List<Extension> |
extensions |
protected java.util.List<Neuron> |
neurons |
protected NnNormalizationMethodType |
normalizationMethod |
protected java.lang.Integer |
numberOfNeurons |
protected java.lang.Double |
threshold |
protected java.lang.Double |
width |
| Constructor and Description |
|---|
NeuralLayer() |
NeuralLayer(java.util.List<Neuron> neurons) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
ActivationFunctionType |
getActivationFunction()
Gets the value of the activationFunction property.
|
java.lang.Double |
getAltitude()
Gets the value of the altitude property.
|
java.util.List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
java.util.List<Neuron> |
getNeurons()
Gets the value of the neurons property.
|
NnNormalizationMethodType |
getNormalizationMethod()
Gets the value of the normalizationMethod property.
|
java.lang.Integer |
getNumberOfNeurons()
Gets the value of the numberOfNeurons property.
|
java.lang.Double |
getThreshold()
Gets the value of the threshold property.
|
java.lang.Double |
getWidth()
Gets the value of the width property.
|
boolean |
hasExtensions() |
boolean |
hasNeurons() |
void |
setActivationFunction(ActivationFunctionType value)
Sets the value of the activationFunction property.
|
void |
setAltitude(java.lang.Double value)
Sets the value of the altitude property.
|
void |
setNormalizationMethod(NnNormalizationMethodType value)
Sets the value of the normalizationMethod property.
|
void |
setNumberOfNeurons(java.lang.Integer value)
Sets the value of the numberOfNeurons property.
|
void |
setThreshold(java.lang.Double value)
Sets the value of the threshold property.
|
void |
setWidth(java.lang.Double value)
Sets the value of the width property.
|
NeuralLayer |
withActivationFunction(ActivationFunctionType value) |
NeuralLayer |
withAltitude(java.lang.Double value) |
NeuralLayer |
withExtensions(java.util.Collection<Extension> values) |
NeuralLayer |
withExtensions(Extension... values) |
NeuralLayer |
withNeurons(java.util.Collection<Neuron> values) |
NeuralLayer |
withNeurons(Neuron... values) |
NeuralLayer |
withNormalizationMethod(NnNormalizationMethodType value) |
NeuralLayer |
withNumberOfNeurons(java.lang.Integer value) |
NeuralLayer |
withThreshold(java.lang.Double value) |
NeuralLayer |
withWidth(java.lang.Double value) |
getLocator, setLocatorprotected java.lang.Integer numberOfNeurons
protected ActivationFunctionType activationFunction
protected java.lang.Double threshold
protected java.lang.Double width
protected java.lang.Double altitude
protected NnNormalizationMethodType normalizationMethod
protected java.util.List<Extension> extensions
protected java.util.List<Neuron> neurons
public NeuralLayer()
public NeuralLayer(java.util.List<Neuron> neurons)
public java.lang.Integer getNumberOfNeurons()
Stringpublic void setNumberOfNeurons(java.lang.Integer value)
value - allowed object is
Stringpublic ActivationFunctionType getActivationFunction()
ActivationFunctionTypepublic void setActivationFunction(ActivationFunctionType value)
value - allowed object is
ActivationFunctionTypepublic java.lang.Double getThreshold()
Doublepublic void setThreshold(java.lang.Double value)
value - allowed object is
Doublepublic java.lang.Double getWidth()
Doublepublic void setWidth(java.lang.Double value)
value - allowed object is
Doublepublic java.lang.Double getAltitude()
Doublepublic void setAltitude(java.lang.Double value)
value - allowed object is
Doublepublic NnNormalizationMethodType getNormalizationMethod()
NnNormalizationMethodTypepublic void setNormalizationMethod(NnNormalizationMethodType value)
value - allowed object is
NnNormalizationMethodTypepublic java.util.List<Extension> getExtensions()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the extensions property.
For example, to add a new item, do as follows:
getExtensions().add(newItem);
Objects of the following type(s) are allowed in the list
Extension
getExtensions in interface HasExtensionspublic java.util.List<Neuron> getNeurons()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the neurons property.
For example, to add a new item, do as follows:
getNeurons().add(newItem);
Objects of the following type(s) are allowed in the list
Neuron
public NeuralLayer withNumberOfNeurons(java.lang.Integer value)
public NeuralLayer withActivationFunction(ActivationFunctionType value)
public NeuralLayer withThreshold(java.lang.Double value)
public NeuralLayer withWidth(java.lang.Double value)
public NeuralLayer withAltitude(java.lang.Double value)
public NeuralLayer withNormalizationMethod(NnNormalizationMethodType value)
public NeuralLayer withExtensions(Extension... values)
public NeuralLayer withExtensions(java.util.Collection<Extension> values)
public NeuralLayer withNeurons(Neuron... values)
public NeuralLayer withNeurons(java.util.Collection<Neuron> values)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic boolean hasNeurons()
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.