org.encog.neural.networks.layers
Interface Layer
-
- All Known Implementing Classes:
- BasicLayer
public interface LayerThis interface defines all necessary methods for a neural network layer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description ActivationFunctiongetActivationFunction()doublegetBiasActivation()Most layer types will default this value to one.BasicNetworkgetNetwork()intgetNeuronCount()booleanhasBias()voidsetActivation(ActivationFunction activation)Set the activation function.voidsetBiasActivation(double activation)Most layer types will default this value to one.voidsetNetwork(BasicNetwork network)Set the network that this layer belongs to.
-
-
-
Method Detail
-
getActivationFunction
ActivationFunction getActivationFunction()
- Returns:
- The activation function used for this layer.
-
getNetwork
BasicNetwork getNetwork()
- Returns:
- The network that this layer is attached to.
-
getNeuronCount
int getNeuronCount()
- Returns:
- The neuron count.
-
hasBias
boolean hasBias()
- Returns:
- True if this layer has a bias.
-
setNetwork
void setNetwork(BasicNetwork network)
Set the network that this layer belongs to.- Parameters:
network- The network.
-
setBiasActivation
void setBiasActivation(double activation)
Most layer types will default this value to one. However, it is possible to use other values. This is the activation that will be passed over the bias weights to the inputs of this layer. See the Layer interface documentation for more information on how Encog handles bias values.- Parameters:
activation- The activation for the bias weights.
-
getBiasActivation
double getBiasActivation()
Most layer types will default this value to one. However, it is possible to use other values. This is the activation that will be passed over the bias weights to the inputs of this layer. See the Layer interface documentation for more information on how Encog handles bias values.- Returns:
- The bias activation for this layer.
-
setActivation
void setActivation(ActivationFunction activation)
Set the activation function.- Parameters:
activation- The activation function.
-
-
DMelt 3.0 © DataMelt by jWork.ORG