grad_tanh: Compute the gradient of the tanh activation function

View source: R/netzuko.R

grad_tanhR Documentation

Compute the gradient of the tanh activation function

Description

Compute the gradient of the tanh activation function

Usage

grad_tanh(s)

Arguments

s

The linear predictors

Value

The gradient of logistic activation evaluated at s

Note

For Internal Use


billyhw/netzuko documentation built on March 23, 2022, 4:26 p.m.