|
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.BasicNetwork
public class BasicNetwork
BasicNetwork: This class implements a neural network. This class works in conjunction the Layer classes. Layers are added to the BasicNetwork to specify the structure of the neural network. The first layer added is the input layer, the final layer added is the output layer. Any layers added between these two layers are the hidden layers.
| Constructor Summary | |
|---|---|
BasicNetwork()
Construct an empty neural network. |
|
| Method Summary | |
|---|---|
void |
addLayer(Layer layer)
Add a layer to the neural network. |
double |
calculateError(NeuralDataSet data)
Calculate the error for this neural network. |
int |
calculateNeuronCount()
Calculate the total number of neurons in the network across all layers. |
java.lang.Object |
clone()
Return a clone of this neural network. |
BasicNetwork |
cloneStructure()
Return a clone of the structure of this neural network. |
NeuralData |
compute(NeuralData input)
Compute the output for a given input to the neural network. |
boolean |
equals(BasicNetwork other)
Compare the two neural networks. |
int |
getHiddenLayerCount()
Get the count for how many hidden layers are present. |
java.util.Collection<Layer> |
getHiddenLayers()
Get a collection of the hidden layers in the network. |
Layer |
getInputLayer()
Get the input layer. |
java.util.List<Layer> |
getLayers()
Get all layers. |
Layer |
getOutputLayer()
Get the output layer. |
int |
getWeightMatrixSize()
Get the size of the weight and threshold matrix. |
int |
hashCode()
Generate a hash code. |
void |
reset()
Reset the weight matrix and the thresholds. |
int |
winner(NeuralData input)
Determine the winner for the specified input. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicNetwork()
| Method Detail |
|---|
public void addLayer(Layer layer)
layer - The layer to be added.public double calculateError(NeuralDataSet data)
data - The training set.
public int calculateNeuronCount()
public java.lang.Object clone()
clone in class java.lang.Objectpublic BasicNetwork cloneStructure()
public NeuralData compute(NeuralData input)
compute in interface Networkinput - The input provide to the neural network.
public boolean equals(BasicNetwork other)
other - The other neural network.
public int getHiddenLayerCount()
public java.util.Collection<Layer> getHiddenLayers()
public Layer getInputLayer()
public java.util.List<Layer> getLayers()
public Layer getOutputLayer()
public int getWeightMatrixSize()
public void reset()
MatrixExceptionpublic int winner(NeuralData input)
input - The input patter to present to the neural network.
public int hashCode()
hashCode in class java.lang.Object
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||