nn_init_calculate_gain: Calculate gain

View source: R/nn-init.R

nn_init_calculate_gainR Documentation

Calculate gain

Description

Return the recommended gain value for the given nonlinearity function.

Usage

nn_init_calculate_gain(nonlinearity, param = NULL)

Arguments

nonlinearity

the non-linear function

param

optional parameter for the non-linear function


torch documentation built on May 29, 2024, 9:54 a.m.