C# Класс SuperNeuro.Layers.Activations.Tanh

Hyperbolic tangent activation. Tanh squashes a real-valued number to the range [-1, 1]. It’s non-linear. But unlike Sigmoid, its output is zero-centered. Therefore, in practice the tanh non-linearity is always preferred to the sigmoid nonlinearity.
Наследование: BaseLayer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Backward ( SuperArray outputgrad ) : void

Calculate the gradient of this layer function

Forward ( SuperArray x ) : void

Forwards the inputs and compute the output

Tanh ( ) : SuperchargedArray

Initializes a new instance of the Tanh class.

Описание методов

Backward() публичный Метод

Calculate the gradient of this layer function
public Backward ( SuperArray outputgrad ) : void
outputgrad SuperArray The calculated output grad from previous layer.
Результат void

Forward() публичный Метод

Forwards the inputs and compute the output
public Forward ( SuperArray x ) : void
x SuperArray The input SuperArray for this layer.
Результат void

Tanh() публичный Метод

Initializes a new instance of the Tanh class.
public Tanh ( ) : SuperchargedArray
Результат SuperchargedArray