The method sets new activation function for all neurons by calling ActivationLayer.SetActivationFunction method for each layer of the network.
public void SetActivationFunction(IActivationFunction function) { for (int i = 0; i < layers.Length; i++) { ((ActivationLayer)layers[i]).SetActivationFunction(function); } } }