|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.adaptation.neural.NeuralUtils
public class NeuralUtils
Some utility functions for creating neural networks.
RepastNeuralWrapper| Method Summary | |
|---|---|
static RepastNeuralWrapper |
buildNetwork(int[] nodesPerLayer,
java.lang.Class[] layerTypes,
java.lang.Class[] synapseTypes)
This builds a neural network using the specified parameters. |
static RepastNeuralWrapper |
buildNetwork(int[] nodesPerLayer,
java.lang.Class layerType,
java.lang.Class synapseType)
This builds a neural network with nodesPerLayer.length layers, each layer being an instance of layerType, and each layer connected by a synapse of type synapseType. |
static org.joone.engine.Synapse |
linkLayers(org.joone.engine.Layer outLayer,
org.joone.engine.Layer inLayer,
java.lang.Class synapseType)
Links two layers using the specified synapse type. |
static RepastNeuralWrapper |
loadNetFromFile(java.lang.String fileName)
This method creates a RepastNeuralWrapper that is wrapping a serialized Joone NeuralNet. |
static void |
saveNetToFile(org.joone.net.NeuralNet net,
java.lang.String fileName)
Saves a NeuralNet to the specified file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static RepastNeuralWrapper buildNetwork(int[] nodesPerLayer,
java.lang.Class layerType,
java.lang.Class synapseType)
throws NeuralException
nodesPerLayer - the number of nodes in the layerslayerType - the type to make the layerssynapseType - the type to make the synapses
NeuralException - when there is an error creating the networkbuildNetwork(int[], Class[], Class[])
public static RepastNeuralWrapper buildNetwork(int[] nodesPerLayer,
java.lang.Class[] layerTypes,
java.lang.Class[] synapseTypes)
throws NeuralException,
java.lang.IllegalArgumentException
nodesPerLayer - the number of nodes in each layerlayerTypes - the types to make the layerssynapseTypes - the types of the synapses connecting the layers
NeuralException - when there is an error instantiating the layers/synapses
java.lang.IllegalArgumentException - when (nodesPerLayer.length != layerTypes.length || layerTypes.length -1 != synapseTypes.length)
public static org.joone.engine.Synapse linkLayers(org.joone.engine.Layer outLayer,
org.joone.engine.Layer inLayer,
java.lang.Class synapseType)
throws NeuralException
outLayer - the layer the synapse is coming out ofinLayer - the layer the synapse is going intosynapseType - the type of the synapse
NeuralException - when there is an error instantiating the synapse
public static void saveNetToFile(org.joone.net.NeuralNet net,
java.lang.String fileName)
throws NeuralException
NeuralNet to the specified file.
net - the neural network to savefileName - the name of the file to save the network to
NeuralException - when there is an error saving the networkRepastNeuralWrapper.saveNetToFile(String),
RepastNeuralWrapper#loadNetFromFile(String)
public static RepastNeuralWrapper loadNetFromFile(java.lang.String fileName)
throws NeuralException
NeuralNet. In other words, this creates a wrapper around a
predesigned NeuralNet.
fileName - the name of the serialized NeuralNet
NeuralException - when there is an error loading the specified
network
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||