|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.persist.BasicPersistedSubObject
org.encog.neural.networks.synapse.BasicSynapse
org.encog.neural.networks.synapse.OneToOneSynapse
public class OneToOneSynapse
A one-to-one synapse requires that the from and to layers have exactly the same number of neurons. A one-to-one synapse can be useful, when used in conjunction with a ContextLayer. This synapse is not teachable.
| Constructor Summary | |
|---|---|
OneToOneSynapse()
Simple default constructor. |
|
OneToOneSynapse(Layer fromLayer,
Layer toLayer)
Construct a one-to-one synapse between the two layers. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
NeuralData |
compute(NeuralData input)
Compute the output from this synapse. |
Persistor |
createPersistor()
Create a persistor for this object. |
Matrix |
getMatrix()
Get the weight matrix. |
int |
getMatrixSize()
Get the size of the matrix, or zero if one is not defined. |
SynapseType |
getType()
|
boolean |
isTeachable()
|
void |
setMatrix(Matrix matrix)
Attempt to set the matrix for this layer. |
| Methods inherited from class org.encog.neural.networks.synapse.BasicSynapse |
|---|
getFromLayer, getFromNeuronCount, getToLayer, getToNeuronCount, isSelfConnected, setFromLayer, setName, setToLayer, toString |
| Methods inherited from class org.encog.persist.BasicPersistedSubObject |
|---|
getCollection, getDescription, getName, setCollection, setDescription |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.encog.persist.EncogPersistedObject |
|---|
getCollection, getDescription, getName, setCollection, setDescription |
| Constructor Detail |
|---|
public OneToOneSynapse()
public OneToOneSynapse(Layer fromLayer,
Layer toLayer)
fromLayer - The starting layer.toLayer - The ending layer.| Method Detail |
|---|
public Object clone()
clone in interface Synapseclone in class BasicSynapsepublic NeuralData compute(NeuralData input)
input - The input to this synapse.
public Persistor createPersistor()
EncogPersistedObject
public Matrix getMatrix()
Synapse
public int getMatrixSize()
Synapse
public SynapseType getType()
public boolean isTeachable()
public void setMatrix(Matrix matrix)
matrix - Not used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||