Documentation For Encog 2.x

INetwork.AddLayer(ILayer, SynapseType) Method

Add a layer to the neural network. If there are no layers added this layer will become the input layer. This function automatically updates both the input and output layer references.

void AddLayer(
   ILayer layer,
   SynapseType type
);

Parameters

layer
The layer to be added to the network.
type
What sort of synapse should connect this layer to the last.

See Also

INetwork Interface | Encog.Neural.Networks Namespace | INetwork.AddLayer Overload List