org.encog.neural.networks.layers
public class BasicLayer extends FlatLayer implements Layer, Serializable
| Constructor and Description |
|---|
BasicLayer(ActivationFunction activationFunction,
boolean hasBias,
int neuronCount)
Construct this layer with a non-default activation function, also
determine if a bias is desired or not.
|
BasicLayer(int neuronCount)
Construct this layer with a sigmoid activation function.
|
| Modifier and Type | Method and Description |
|---|---|
ActivationFunction |
getActivationFunction() |
BasicNetwork |
getNetwork() |
int |
getNeuronCount() |
void |
setNetwork(BasicNetwork network)
Set the network for this layer.
|
getActivation, getBiasActivation, getContextCount, getContextFedBy, getCount, getTotalCount, hasBias, setActivation, setBiasActivation, setContextFedBy, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBiasActivation, hasBias, setActivation, setBiasActivationpublic BasicLayer(ActivationFunction activationFunction, boolean hasBias, int neuronCount)
activationFunction - The activation function to use.neuronCount - How many neurons in this layer.hasBias - True if this layer has a bias.public BasicLayer(int neuronCount)
neuronCount - How many neurons in this layer.public BasicNetwork getNetwork()
getNetwork in interface Layerpublic void setNetwork(BasicNetwork network)
setNetwork in interface Layernetwork - The network for this layer.public int getNeuronCount()
getNeuronCount in interface Layerpublic ActivationFunction getActivationFunction()
getActivationFunction in interface LayerCopyright © 2014. All Rights Reserved.