org.encog.neural.freeform.basic
Class BasicFreeformLayer
- java.lang.Object
-
- org.encog.neural.freeform.basic.BasicFreeformLayer
-
- All Implemented Interfaces:
- java.io.Serializable, FreeformLayer
public class BasicFreeformLayer extends java.lang.Object implements FreeformLayer, java.io.Serializable
Implements a basic freeform layer.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description BasicFreeformLayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(FreeformNeuron basicFreeformNeuron)Add a neuron to this layer.java.util.List<FreeformNeuron>getNeurons()booleanhasBias()voidsetActivation(int i, double activation)Set the activation for the specified index.intsize()intsizeNonBias()
-
-
-
Method Detail
-
add
public void add(FreeformNeuron basicFreeformNeuron)
Add a neuron to this layer.- Specified by:
addin interfaceFreeformLayer- Parameters:
basicFreeformNeuron- The neuron to add.
-
getNeurons
public java.util.List<FreeformNeuron> getNeurons()
- Specified by:
getNeuronsin interfaceFreeformLayer- Returns:
- The neurons in this layer.
-
hasBias
public boolean hasBias()
- Specified by:
hasBiasin interfaceFreeformLayer- Returns:
- True if this layer has bias.
-
setActivation
public void setActivation(int i, double activation)Set the activation for the specified index.- Specified by:
setActivationin interfaceFreeformLayer- Parameters:
i- The index.activation- The data for that index.
-
size
public int size()
- Specified by:
sizein interfaceFreeformLayer- Returns:
- The size of this layer, including bias.
-
sizeNonBias
public int sizeNonBias()
- Specified by:
sizeNonBiasin interfaceFreeformLayer- Returns:
- The size of this layer, no bias counted.
-
-
DMelt 3.0 © DataMelt by jWork.ORG