org.encog.engine.network.flat
Class FlatLayer
java.lang.Object
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. |
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.
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.