|
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. |
void |
addLayer(Layer baseLayer,
Layer newLayer)
Add a layer after the base layer. |
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. |
Persistor |
createPersistor()
Create a persistor for this object. |
boolean |
equals(BasicNetwork other)
Compare the two neural networks. |
java.lang.String |
getDescription()
|
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. |
java.lang.String |
getName()
|
Layer |
getOutputLayer()
Get the output layer. |
int |
getWeightMatrixSize()
Get the size of the weight and threshold matrix. |
int |
hashCode()
Generate a hash code. |
void |
removeLayer(Layer layer)
Remove a layer, adjust the weight matrixes and back pointers. |
void |
reset()
Reset the weight matrix and the thresholds. |
void |
setDescription(java.lang.String theDescription)
Set the description for this object. |
void |
setName(java.lang.String name)
|
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 void addLayer(Layer baseLayer,
Layer newLayer)
baseLayer - The layer to add after.newLayer - The new layer to add.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 Persistor createPersistor()
createPersistor in interface EncogPersistedObjectpublic boolean equals(BasicNetwork other)
other - The other neural network.
public java.lang.String getDescription()
getDescription in interface EncogPersistedObjectpublic int getHiddenLayerCount()
public java.util.Collection<Layer> getHiddenLayers()
public Layer getInputLayer()
public java.util.List<Layer> getLayers()
public java.lang.String getName()
getName in interface EncogPersistedObjectpublic Layer getOutputLayer()
public int getWeightMatrixSize()
public int hashCode()
hashCode in class java.lang.Objectpublic void removeLayer(Layer layer)
layer - The layer to remove.public void reset()
MatrixExceptionpublic void setDescription(java.lang.String theDescription)
setDescription in interface EncogPersistedObjecttheDescription - The description.public void setName(java.lang.String name)
setName in interface EncogPersistedObjectname - the name to setpublic int winner(NeuralData input)
input - The input patter to present to the neural network.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||