|
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.NetworkCODEC
public final class NetworkCODEC
This class will extract the "long term memory" of a neural network, that is the weights and threshold values into an array. This array can be used to view the neural network as a linear array of doubles. These values can then be modified and copied back into the neural network. This is very useful for simulated annealing, as well as genetic algorithms.
| Method Summary | |
|---|---|
static void |
arrayToNetwork(java.lang.Double[] array,
BasicNetwork network)
Use an array to populate the memory of the neural network. |
static java.lang.Double[] |
networkToArray(BasicNetwork network)
Convert to an array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void arrayToNetwork(java.lang.Double[] array,
BasicNetwork network)
array - An array of doubles.network - The network to encode.public static java.lang.Double[] networkToArray(BasicNetwork network)
network - The network to encode.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||