C# Class Accord.Neuro.ActivationNetwork

Inheritance: Network
Exibir arquivo Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
ActivationNetwork ( IActivationFunction function, int inputsCount ) : System

Initializes a new instance of the ActivationNetwork class.

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

SetActivationFunction ( IActivationFunction function ) : void

Set new activation function for all neurons of the network.

The method sets new activation function for all neurons by calling ActivationLayer.SetActivationFunction method for each layer of the network.

Method Details

ActivationNetwork() public method

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

SetActivationFunction() public method

Set new activation function for all neurons of the network.

The method sets new activation function for all neurons by calling ActivationLayer.SetActivationFunction method for each layer of the network.

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