java.lang.Object
AI.NeuralNetworks.FeedForwardLayer
AI.NeuralNetworks.FeedForwardWeightedLayer
- Direct Known Subclasses:
- FeedForwardWeightedTrainingLayer
- public class FeedForwardWeightedLayer
- extends FeedForwardLayer
This class is used to represent the inner and output layers of a multilayer feed forward neural network
|
Method Summary |
protected float[][] |
getWeights()
|
void |
runLayer(FeedForwardLayer previousLayer)
Calculates the new activation values of this layer based on the previous layer |
protected static float |
sigmoid(float x)
returns the value of the sigmoid function 1/(1+exp(-x)) |
java.lang.String |
toString()
returns a String representation of the layer |
weights
protected float[][] weights
SEED_WIDTH
private static float SEED_WIDTH
FeedForwardWeightedLayer
public FeedForwardWeightedLayer(int size,
int previousSize)
- creates a new insatnce of FeedForwardWeightedLayer
FeedForwardWeightedLayer
public FeedForwardWeightedLayer(FeedForwardWeightedLayer layer)
- creates a new insatnce of FeedForwardWeightedLayer
FeedForwardWeightedLayer
public FeedForwardWeightedLayer(float[][] weights)
- creates a new insatnce of FeedForwardWeightedLayer
runLayer
public void runLayer(FeedForwardLayer previousLayer)
- Calculates the new activation values of this layer based on the previous layer
sigmoid
protected static float sigmoid(float x)
- returns the value of the sigmoid function 1/(1+exp(-x))
getWeights
protected float[][] getWeights()
toString
public java.lang.String toString()
- returns a String representation of the layer
- Overrides:
toString in class FeedForwardLayer