C# Class AForge.Neuro.ActivationLayer

Activation layer.
Activation layer is a layer of activation neurons. The layer is usually used in multi-layer neural networks.
Inheritance: Layer
Show file Open project: holisticware-admin/MonoVersal.AForgeNET Class Usage Examples

Public Methods

Method Description
ActivationLayer ( int neuronsCount, int inputsCount, IActivationFunction function ) : System

Initializes a new instance of the ActivationLayer class.

The new layer is randomized (see ActivationNeuron.Randomize method) after it is created.

SetActivationFunction ( IActivationFunction function ) : void

Set new activation function for all neurons of the layer.

The methods sets new activation function for each neuron by setting their ActivationNeuron.ActivationFunction property.

Method Details

ActivationLayer() public method

Initializes a new instance of the ActivationLayer class.
The new layer is randomized (see ActivationNeuron.Randomize method) after it is created.
public ActivationLayer ( int neuronsCount, int inputsCount, IActivationFunction function ) : System
neuronsCount int Layer's neurons count.
inputsCount int Layer's inputs count.
function IActivationFunction Activation function of neurons of the layer.
return System

SetActivationFunction() public method

Set new activation function for all neurons of the layer.

The methods sets new activation function for each neuron by setting their ActivationNeuron.ActivationFunction property.

public SetActivationFunction ( IActivationFunction function ) : void
function IActivationFunction Activation function to set.
return void