org.encog.engine.network.flat
Class FlatLayer

java.lang.Object
  extended by org.encog.engine.network.flat.FlatLayer

public class FlatLayer
extends Object

Used to configure a flat layer. Flat layers are not kept by a Flat Network, beyond setup.


Constructor Summary
FlatLayer(ActivationFunction activation, int count, double biasActivation, double[] params)
          Construct a flat layer.
 
Method Summary
 ActivationFunction getActivation()
           
 double getBiasActivation()
           
 int getContectCount()
           
 FlatLayer getContextFedBy()
           
 int getCount()
           
 int getTotalCount()
           
 boolean isBias()
           
 void setContextFedBy(FlatLayer from)
          Set the layer that this layer's context is fed by.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlatLayer

public FlatLayer(ActivationFunction activation,
                 int count,
                 double biasActivation,
                 double[] params)
Construct a flat layer.

Parameters:
activation - The activation function.
count - The neuron count.
biasActivation - The bias activation.
params - The parameters.
Method Detail

getActivation

public ActivationFunction getActivation()
Returns:
the activation

getBiasActivation

public double getBiasActivation()
Returns:
Get the bias activation.

getContectCount

public int getContectCount()
Returns:
The number of neurons our context is fed by.

getContextFedBy

public FlatLayer getContextFedBy()
Returns:
The layer that feeds this layer's context.

getCount

public int getCount()
Returns:
the count

getTotalCount

public int getTotalCount()
Returns:
The total number of neurons on this layer, includes context, bias and regular.

isBias

public boolean isBias()
Returns:
the bias

setContextFedBy

public void setContextFedBy(FlatLayer from)
Set the layer that this layer's context is fed by.

Parameters:
from - The layer feeding.

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.