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 Aug. 21, 2025, 5:50 p.m.