|
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
public class BasicLayer
Basic functionality that most of the neural layers require.
| Constructor Summary | |
|---|---|
BasicLayer(int neuronCount)
Construct a basic layer with the specified neuron count. |
|
| Method Summary | |
|---|---|
NeuralData |
compute(NeuralData pattern)
This layer is too basic to know how to compute a pattern, it simply passes the pattern on. |
Persistor |
createPersistor()
Create a persistor for this layer. |
java.lang.String |
getDescription()
|
NeuralData |
getFire()
Get the output array from the last time that the output of this layer was calculated. |
double |
getFire(int index)
Get the output from an individual neuron. |
Matrix |
getMatrix()
Get the weight and threshold matrix. |
int |
getMatrixSize()
Get the size of the matrix, or zero if one is not defined. |
java.lang.String |
getName()
|
int |
getNeuronCount()
Get the neuron count for this layer. |
Layer |
getNext()
|
Layer |
getPrevious()
|
boolean |
hasMatrix()
Determine if this layer has a matrix. |
boolean |
isHidden()
Determine if this is a hidden layer. |
boolean |
isInput()
Determine if this is an input layer. |
boolean |
isOutput()
Determine if this is an output layer. |
void |
reset()
Reset the weight matrix and threshold values to random numbers between -1 and 1. |
void |
setDescription(java.lang.String description)
|
void |
setFire(int index,
double f)
Set the last output value for the specified neuron. |
void |
setFire(NeuralData fire)
Set the fire data. |
void |
setMatrix(Matrix matrix)
Assign a new weight and threshold matrix to this layer. |
void |
setName(java.lang.String name)
|
void |
setNeuronCount(int count)
Set the neuron count. |
void |
setNext(Layer next)
Set the next layer. |
void |
setPrevious(Layer previous)
Set the previous layer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicLayer(int neuronCount)
neuronCount - How many neurons does this layer have.| Method Detail |
|---|
public NeuralData compute(NeuralData pattern)
compute in interface Layerpattern - The pattern to compute against.
public Persistor createPersistor()
createPersistor in interface EncogPersistedObjectpublic java.lang.String getDescription()
getDescription in interface EncogPersistedObjectpublic NeuralData getFire()
getFire in interface Layerpublic double getFire(int index)
index - The neuron specified.
public Matrix getMatrix()
getMatrix in interface Layerpublic int getMatrixSize()
getMatrixSize in interface Layerpublic java.lang.String getName()
getName in interface EncogPersistedObjectpublic int getNeuronCount()
getNeuronCount in interface Layerpublic Layer getNext()
getNext in interface Layerpublic Layer getPrevious()
getPrevious in interface Layerpublic boolean hasMatrix()
hasMatrix in interface Layerpublic boolean isHidden()
isHidden in interface Layerpublic boolean isInput()
isInput in interface Layerpublic boolean isOutput()
isOutput in interface Layerpublic void reset()
reset in interface Layerpublic void setDescription(java.lang.String description)
setDescription in interface EncogPersistedObjectdescription - the description to set
public void setFire(int index,
double f)
setFire in interface Layerindex - The specified neuron.f - The fire value for the specified neuron.public void setFire(NeuralData fire)
setFire in interface Layerfire - The fire data.public void setMatrix(Matrix matrix)
setMatrix in interface Layermatrix - The new matrix.public void setName(java.lang.String name)
setName in interface EncogPersistedObjectname - the name to setpublic void setNeuronCount(int count)
count - How many neurons on this layer.public void setNext(Layer next)
setNext in interface Layernext - the next layer.public void setPrevious(Layer previous)
setPrevious in interface Layerprevious - the previous layer.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||