Documentation For Encog 2.x

PruneSelective.ChangeNeuronCount Method

Change the neuron count for the network. If the count is increased then a zero-weighted neuron is added, which will not affect the output of the neural network. If the neuron count is decreased, then the weakest neuron will be removed.

public void ChangeNeuronCount(
   ILayer layer,
   int neuronCount
);

Parameters

layer
The layer to adjust.
neuronCount
The new neuron count for this layer.

See Also

PruneSelective Class | Encog.Neural.Networks.Prune Namespace