|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.neural.networks.layers.BasicLayer
org.encog.neural.networks.layers.FeedforwardLayer
public class FeedforwardLayer
FeedforwardLayer: This class represents one layer in a feed forward neural network. This layer could be input, output, or hidden, depending on its placement inside of the FeedforwardNetwork class. An activation function can also be specified. Usually all layers in a neural network will use the same activation function. By default this class uses the sigmoid activation function.
| Constructor Summary | |
|---|---|
FeedforwardLayer(ActivationFunction thresholdFunction,
int neuronCount)
Construct this layer with a non-default threshold function. |
|
FeedforwardLayer(int neuronCount)
Construct this layer with a sigmoid threshold function. |
|
| Method Summary | |
|---|---|
FeedforwardLayer |
cloneStructure()
Clone the structure of this layer, but do not copy any matrix data. |
NeuralData |
compute(NeuralData pattern)
Compute the outputs for this layer given the input pattern. |
ActivationFunction |
getActivationFunction()
|
void |
prune(int neuron)
Prune one of the neurons from this layer. |
void |
setMatrix(Matrix matrix)
Assign a new weight and threshold matrix to this layer. |
void |
setNext(Layer next)
Set the next layer. |
java.lang.String |
toString()
|
| Methods inherited from class org.encog.neural.networks.layers.BasicLayer |
|---|
getFire, getFire, getMatrix, getMatrixSize, getNeuronCount, getNext, getPrevious, hasMatrix, isHidden, isInput, isOutput, reset, setFire, setFire, setPrevious |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FeedforwardLayer(ActivationFunction thresholdFunction,
int neuronCount)
thresholdFunction - The threshold function to use.neuronCount - How many neurons in this layer.public FeedforwardLayer(int neuronCount)
neuronCount - How many neurons in this layer.| Method Detail |
|---|
public FeedforwardLayer cloneStructure()
public NeuralData compute(NeuralData pattern)
compute in interface Layercompute in class BasicLayerpattern - The input pattern.
public ActivationFunction getActivationFunction()
public void prune(int neuron)
neuron - The neuron to prune. Zero specifies the first neuron.public void setMatrix(Matrix matrix)
setMatrix in interface LayersetMatrix in class BasicLayermatrix - The new matrix.public void setNext(Layer next)
setNext in interface LayersetNext in class BasicLayernext - the next layer.public java.lang.String toString()
toString in class java.lang.Object
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||