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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBiasActivation, hasBias, setActivation, setBiasActivation
public 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 Layer
public void setNetwork(BasicNetwork network)
setNetwork
in interface Layer
network
- The network for this layer.public int getNeuronCount()
getNeuronCount
in interface Layer
public ActivationFunction getActivationFunction()
getActivationFunction
in interface Layer
Copyright © 2014. All Rights Reserved.