public class BasicLayer extends FlatLayer implements Layer, java.io.Serializable
| Constructor and Description |
|---|
BasicLayer(ActivationFunction activationFunction,
boolean hasBias,
int neuronCount) |
BasicLayer(ActivationFunction activationFunction,
boolean hasBias,
int neuronCount,
double dropoutRate)
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, getDropoutRate, getTotalCount, hasBias, setActivation, setBiasActivation, setContextFedBy, setDropoutRate, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBiasActivation, hasBias, setActivation, setBiasActivationpublic BasicLayer(ActivationFunction activationFunction, boolean hasBias, int neuronCount, double dropoutRate)
activationFunction - The activation function to use.neuronCount - How many neurons in this layer.hasBias - True if this layer has a bias.dropoutRate - The dropout rate for this layerpublic BasicLayer(ActivationFunction activationFunction, boolean hasBias, int neuronCount)
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 Layer