|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NeuralNet
Common interface for interaction with a neural network representation.
Neural Network structure is composed of neurons organized into layers.
There is one input layer, zero or more hidden layers and one output layer.
The input layer is used just to store and forward input pattern of the network to the first
hidden layer for processing. Input layer typically do not process input pattern.
Neurons of input layer are assumed to have one input weight equal to 1, bias weight
equal to 0 and use linear activation function.
Method Summary | |
---|---|
double[] |
feedForward(double[] inputPattern)
Propagates the input pattern through the network. |
int |
getLayersCount()
Returns a total number of layers of the neural network. |
List<Neuron> |
getLayerUnits(int layerIndex)
Returns units of a particular layer of the neural network. |
int |
getNetInputSize()
Gets the size/dimension of the input layer of the neural network. |
int |
getNetOutputSize()
Gets the size/dimension of the output layer of the neural network. |
double[] |
getOutput()
Returns the actual output of the neural network, which is a result of last processed input pattern. |
void |
reset()
Perform reset, re-initialization of neural network. |
Method Detail |
---|
int getNetInputSize()
int getNetOutputSize()
int getLayersCount()
List<Neuron> getLayerUnits(int layerIndex)
layerIndex
-
IndexOutOfBoundsException
- if the index is out of rangeCollections.unmodifiableList(List)
double[] feedForward(double[] inputPattern)
inputPattern
- the input pattern for the network to process
IllegalArgumentException
- if input pattern is null or does not match network input dimensiondouble[] getOutput()
void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |