|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--bsoc.nn.Net
Is an artificiel neural net.
A net contains out of an ordered list of layers. The first layer is called the input-layer and the last layer is the output layer. The layers are lists of layer-nodes. A layer-node is a neuron if it is not in the input layer. Connections between neurons and layer-nodes can be defined via synapses. The structure (its connections) of the net is defined by the net-connector that must be used as an argumet to the constructor. Diverse parameters for synapses and neurons can also be defined with the net-Connector.
see@ Neuron see@ Layer
| Constructor Summary | |
Net(NetConnector nc)
|
|
| Method Summary | |
void |
addLayer(Layer l)
|
boolean |
equals(java.lang.Object o)
Compares the weights and values of two nets. |
boolean |
equalsInValues(java.lang.Object o)
Compares the values of the layer-nodes (or neurons) of two nets. |
boolean |
equalsInWeights(java.lang.Object o)
Compares the weights of the synapses of two nets. |
Layer |
getInputLayer()
|
bsoc.nn.NeuronLayer |
getOutputLayer()
|
Layer |
layerAt(int i)
|
int |
layerCount()
|
java.util.Enumeration |
layers()
Iterates through the layers of the net. |
java.util.Enumeration |
neuronLayers()
Iterates through the layers containing neurons. |
Crossable |
newChild(Crossable otherParent,
CrossoverSwitch cs,
Mutator mut)
Creates a child net. |
void |
recalculate()
|
void |
setInputLayerValuesRandom(RandomValue rv)
|
void |
setWeightsCrossover(Net father,
Net mother,
java.util.Random r)
Sets the weights of the net according to the weights of the parent nets by means of an n-point crossover algorithm. |
void |
setWeightsRandom()
|
void |
setWeightsRandom(RandomWgt rw)
|
java.lang.String |
toString()
|
void |
writeConnStatToStream(java.io.PrintWriter str)
Writes a connection statistic to an output stream. |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Net(NetConnector nc)
| Method Detail |
public bsoc.nn.NeuronLayer getOutputLayer()
public Layer getInputLayer()
public Crossable newChild(Crossable otherParent,
CrossoverSwitch cs,
Mutator mut)
public void setInputLayerValuesRandom(RandomValue rv)
public void setWeightsRandom(RandomWgt rw)
public void setWeightsRandom()
public void setWeightsCrossover(Net father,
Net mother,
java.util.Random r)
public void addLayer(Layer l)
public Layer layerAt(int i)
public int layerCount()
public java.lang.String toString()
public void writeConnStatToStream(java.io.PrintWriter str)
The output stream is a table who's colums are delimited by semicolums. The first line contains columheaders.
public void recalculate()
public boolean equalsInValues(java.lang.Object o)
public boolean equalsInWeights(java.lang.Object o)
public boolean equals(java.lang.Object o)
public java.util.Enumeration layers()
public java.util.Enumeration neuronLayers()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||