|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.neural.networks.structure.NeuralStructure
public class NeuralStructure
Holds "cached" information about the structure of the neural network. This is a very good performance boost since the neural network does not need to traverse itself each time a complete collection of layers or synapses is needed.
Constructor Summary | |
---|---|
NeuralStructure(BasicNetwork network)
Construct a structure object for the specified network. |
Method Summary | |
---|---|
int |
calculateSize()
Calculate the size that an array should be to hold all of the weights and bias values. |
void |
enforceLimit()
Enforce that all connections are above the connection limit. |
void |
finalizeLimit()
Parse/finalize the limit value for connections. |
void |
finalizeStructure()
Build the synapse and layer structure. |
double |
getConnectionLimit()
|
FlatNetwork |
getFlat()
|
List<Layer> |
getLayers()
|
BasicNetwork |
getNetwork()
|
boolean |
isConnectionLimited()
|
void |
requireFlat()
Throw an error if there is no flat network. |
void |
setFlat(FlatNetwork flat)
Set the flat network. |
void |
updateProperties()
Update any properties from the property map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NeuralStructure(BasicNetwork network)
network
- The network to construct a structure for.Method Detail |
---|
public final int calculateSize()
public final void enforceLimit()
public void finalizeLimit()
public final void finalizeStructure()
public final double getConnectionLimit()
public final FlatNetwork getFlat()
public final List<Layer> getLayers()
public final BasicNetwork getNetwork()
public final boolean isConnectionLimited()
public final void requireFlat()
public final void setFlat(FlatNetwork flat)
flat
- The flat network.public final void updateProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |