org.encog.neural.freeform
Interface FreeformLayer
-
- All Known Implementing Classes:
- BasicFreeformLayer
public interface FreeformLayerDefines a freeform layer. A layer is a group of similar neurons.
-
-
Method Summary
All Methods Instance Methods Abstract 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 data)Set the activation for the specified index.intsize()intsizeNonBias()
-
-
-
Method Detail
-
add
void add(FreeformNeuron basicFreeformNeuron)
Add a neuron to this layer.- Parameters:
basicFreeformNeuron- The neuron to add.
-
getNeurons
java.util.List<FreeformNeuron> getNeurons()
- Returns:
- The neurons in this layer.
-
hasBias
boolean hasBias()
- Returns:
- True if this layer has bias.
-
setActivation
void setActivation(int i, double data)Set the activation for the specified index.- Parameters:
i- The index.data- The data for that index.
-
size
int size()
- Returns:
- The size of this layer, including bias.
-
sizeNonBias
int sizeNonBias()
- Returns:
- The size of this layer, no bias counted.
-
-
DMelt 3.0 © DataMelt by jWork.ORG