org.encog.neural.freeform.basic
public class BasicFreeformLayer extends Object implements FreeformLayer, Serializable
Constructor and Description |
---|
BasicFreeformLayer() |
Modifier and Type | Method and Description |
---|---|
void |
add(FreeformNeuron basicFreeformNeuron)
Add a neuron to this layer.
|
List<FreeformNeuron> |
getNeurons() |
boolean |
hasBias() |
void |
setActivation(int i,
double activation)
Set the activation for the specified index.
|
int |
size() |
int |
sizeNonBias() |
public void add(FreeformNeuron basicFreeformNeuron)
add
in interface FreeformLayer
basicFreeformNeuron
- The neuron to add.public List<FreeformNeuron> getNeurons()
getNeurons
in interface FreeformLayer
public boolean hasBias()
hasBias
in interface FreeformLayer
public void setActivation(int i, double activation)
setActivation
in interface FreeformLayer
i
- The index.activation
- The data for that index.public int size()
size
in interface FreeformLayer
public int sizeNonBias()
sizeNonBias
in interface FreeformLayer
Copyright © 2014. All Rights Reserved.