|
||||||||||
| 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. |
Object |
clone()
Return a clone of this neural network. |
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. |
String |
getDescription()
|
String |
getName()
|
NeuralStructure |
getStructure()
|
int |
getWeightMatrixSize()
|
int |
hashCode()
Generate a hash code. |
void |
reset()
Reset the weight matrix and the bias values. |
void |
setDescription(String theDescription)
Set the description for this object. |
void |
setName(String name)
Set the name of this object. |
String |
toString()
|
int |
winner(NeuralData input)
Determine the winner for the specified input. |
| Methods inherited from interface org.encog.persist.EncogPersistedObject |
|---|
getCollection, setCollection |
| Methods inherited from interface org.encog.engine.EngineMachineLearning |
|---|
compute, getInputCount, getOutputCount |
| 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()
Object clone()
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.
String getDescription()
getDescription in interface EncogPersistedObjectString getName()
getName in interface EncogPersistedObjectNeuralStructure getStructure()
int getWeightMatrixSize()
int hashCode()
hashCode in class Objectvoid reset()
void setDescription(String theDescription)
setDescription in interface EncogPersistedObjecttheDescription - The description.void setName(String name)
EncogPersistedObject
setName in interface EncogPersistedObjectname - the name to setString toString()
toString in class Objectint winner(NeuralData input)
input - The input patter to present to the neural network.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||