|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Layer
This interface defines all necessary methods for a neural network layer.
Method Summary | |
---|---|
ActivationFunction |
getActivationFunction()
|
double |
getBiasActivation()
Most layer types will default this value to one. |
BasicNetwork |
getNetwork()
|
int |
getNeuronCount()
|
boolean |
hasBias()
|
void |
setActivation(ActivationFunction activation)
Set the activation function. |
void |
setBiasActivation(double activation)
Most layer types will default this value to one. |
void |
setNetwork(BasicNetwork network)
Set the network that this layer belongs to. |
Method Detail |
---|
ActivationFunction getActivationFunction()
BasicNetwork getNetwork()
int getNeuronCount()
boolean hasBias()
void setNetwork(BasicNetwork network)
network
- The network.void setBiasActivation(double activation)
activation
- The activation for the bias weights.double getBiasActivation()
void setActivation(ActivationFunction activation)
activation
- The activation function.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |