|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Synapse
A synapse is the connection between two layers of a neural network. The various synapse types define how layers will interact with each other. Some synapses contain a weight matrix, which cause them to be teachable. Others simply feed the data between layers in various ways, and are not teachable.
| Method Summary | |
|---|---|
Object |
clone()
|
NeuralData |
compute(NeuralData input)
Compute the output from this synapse. |
Layer |
getFromLayer()
|
int |
getFromNeuronCount()
|
Matrix |
getMatrix()
Get the weight matrix. |
int |
getMatrixSize()
Get the size of the matrix, or zero if one is not defined. |
Layer |
getToLayer()
|
int |
getToNeuronCount()
|
SynapseType |
getType()
|
boolean |
isSelfConnected()
|
boolean |
isTeachable()
|
void |
setFromLayer(Layer fromLayer)
Set the from layer for this synapse. |
void |
setMatrix(Matrix matrix)
Assign a new weight matrix to this layer. |
void |
setToLayer(Layer toLayer)
Set the target layer from this synapse. |
| Methods inherited from interface org.encog.persist.EncogPersistedObject |
|---|
createPersistor, getCollection, getDescription, getName, setCollection, setDescription, setName |
| Method Detail |
|---|
Object clone()
NeuralData compute(NeuralData input)
input - The input to this synapse.
Layer getFromLayer()
int getFromNeuronCount()
Matrix getMatrix()
int getMatrixSize()
Layer getToLayer()
int getToNeuronCount()
SynapseType getType()
boolean isSelfConnected()
boolean isTeachable()
void setFromLayer(Layer fromLayer)
fromLayer - The from layer for this synapse.void setMatrix(Matrix matrix)
matrix - The new matrix.void setToLayer(Layer toLayer)
toLayer - The target layer from this synapse.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||