org.generation5.nn
Class FFNHiddenLayer

java.lang.Object
  extended byorg.generation5.nn.FFNLayer
      extended byorg.generation5.nn.FFNHiddenLayer

public class FFNHiddenLayer
extends FFNLayer

This class implements a hidden layer for a feedforward network.


Field Summary
protected  int numUnits
          The number of units/nodes in this layer.
 
Fields inherited from class org.generation5.nn.FFNLayer
activate, connected, myNetwork, outputs, weights
 
Constructor Summary
FFNHiddenLayer(int units)
          Creates a new instance of FFNHiddenLayer
 
Method Summary
 int getUnitCount()
          Get the number of units in this layer.
 void setActivation(Activation activate)
          Set the activation function.
 
Methods inherited from class org.generation5.nn.FFNLayer
connectWith, getOutput, randomizeWeights, run, setNetwork, setWeights, setWeights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numUnits

protected int numUnits
The number of units/nodes in this layer.

Constructor Detail

FFNHiddenLayer

public FFNHiddenLayer(int units)
Creates a new instance of FFNHiddenLayer

Parameters:
units - the number of units in this layer.
Method Detail

setActivation

public void setActivation(Activation activate)
Set the activation function.

Parameters:
activate - the activation function.

getUnitCount

public int getUnitCount()
Description copied from class: FFNLayer
Get the number of units in this layer.

Specified by:
getUnitCount in class FFNLayer
Returns:
the number of units.

This documentation is part of the Generation5 JDK.