|
||||||||||
| 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.WeightedSynapse
public class WeightedSynapse
A fully-connected weight based synapse. Inputs will be multiplied by the weight matrix and presented to the layer. This synapse type is teachable. This is a "fully connected" synapse between two layers. If you would like only some neurons to be connected to others, you should use the PartialSynapse.
| Constructor Summary | |
|---|---|
WeightedSynapse()
Simple default constructor. |
|
WeightedSynapse(Layer fromLayer,
Layer toLayer)
Construct a weighted synapse between the two layers. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
NeuralData |
compute(NeuralData input)
Compute the weighted output from this synapse. |
Persistor |
createPersistor()
Return 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)
Assign a new weight matrix to 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 WeightedSynapse()
public WeightedSynapse(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 from the synapse.
public Persistor createPersistor()
public Matrix getMatrix()
public int getMatrixSize()
public SynapseType getType()
public boolean isTeachable()
public void setMatrix(Matrix matrix)
matrix - The new matrix.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||