|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Network
Interface that defines a neural network.
| Method Summary | |
|---|---|
void |
addLayer(Layer layer)
Add a layer to the neural network. |
void |
addLayer(Layer layer,
SynapseType type)
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. |
void |
checkInputSize(NeuralData input)
Check that the input size is acceptable, if it does not match the input layer, then throw an error. |
java.lang.Object |
clone()
Return a clone of this neural network. |
boolean |
compareLayer(Layer layerThis,
Layer layerOther,
int precision)
Used to compare one neural network to another, compare two layers. |
NeuralData |
compute(NeuralData input)
Compute the output for a given input to the neural network. |
NeuralData |
compute(NeuralData input,
NeuralOutputHolder useHolder)
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. |
boolean |
equals(BasicNetwork other,
int precision)
Determine if this neural network is equal to another. |
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.lang.String |
getName()
|
Layer |
getOutputLayer()
Get the output layer. |
NeuralStructure |
getStructure()
|
int |
getWeightMatrixSize()
|
int |
hashCode()
Generate a hash code. |
void |
inferOutputLayer()
Called to cause the network to attempt to infer which layer should be the output layer. |
boolean |
isHidden(Layer layer)
Determine if this layer is hidden. |
boolean |
isInput(Layer layer)
Determine if this layer is the input layer. |
boolean |
isOutput(Layer layer)
Determine if this layer is the output layer. |
void |
reset()
Reset the weight matrix and the thresholds. |
void |
setDescription(java.lang.String theDescription)
Set the description for this object. |
void |
setInputLayer(Layer input)
Define the input layer for the network. |
void |
setName(java.lang.String name)
Set the name of this object. |
void |
setOutputLayer(Layer outputLayer)
|
java.lang.String |
toString()
|
int |
winner(NeuralData input)
Determine the winner for the specified input. |
| Method Detail |
|---|
void addLayer(Layer layer)
layer - The layer to be added.
void addLayer(Layer layer,
SynapseType type)
layer - The layer to be added to the network.type - What sort of synapse should connect this layer to the last.double calculateError(NeuralDataSet data)
data - The training set.
int calculateNeuronCount()
void checkInputSize(NeuralData input)
input - The input data.java.lang.Object clone()
clone in interface EncogPersistedObject
boolean compareLayer(Layer layerThis,
Layer layerOther,
int precision)
layerThis - The layer being compared.layerOther - The other layer.precision - The precision to use, how many decimal places.
NeuralData compute(NeuralData input)
input - The input to the neural network.
NeuralData compute(NeuralData input,
NeuralOutputHolder useHolder)
input - The input provide to the neural network.useHolder - Allows a holder to be specified, this allows propagation
training to check the output of each layer.
Persistor createPersistor()
createPersistor in interface EncogPersistedObjectboolean equals(BasicNetwork other)
other - The other neural network.
boolean equals(BasicNetwork other,
int precision)
other - The other neural network.precision - The number of decimal places to compare to.
java.lang.String getDescription()
getDescription in interface EncogPersistedObjectint getHiddenLayerCount()
java.util.Collection<Layer> getHiddenLayers()
Layer getInputLayer()
java.lang.String getName()
getName in interface EncogPersistedObjectLayer getOutputLayer()
NeuralStructure getStructure()
int getWeightMatrixSize()
int hashCode()
hashCode in class java.lang.Objectvoid inferOutputLayer()
boolean isHidden(Layer layer)
layer - The layer to evaluate.
boolean isInput(Layer layer)
layer - The layer to evaluate.
boolean isOutput(Layer layer)
layer - The layer to evaluate.
void reset()
void setDescription(java.lang.String theDescription)
setDescription in interface EncogPersistedObjecttheDescription - The description.void setInputLayer(Layer input)
input - The new input layer.void setName(java.lang.String name)
EncogPersistedObject
setName in interface EncogPersistedObjectname - the name to setvoid setOutputLayer(Layer outputLayer)
outputLayer - the outputLayer to setjava.lang.String toString()
toString in class java.lang.Objectint 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 | ||||||||