init(function:alpha:beta:)
Returns a new common activation function parameters structure that uses the specified function, alpha, and beta.
Declaration
init(function: BNNSActivationFunction, alpha: Float = .nan, beta: Float = .nan)Parameters
- function:
The activation function to use.
- alpha:
The parameter for the alpha of the activation function.
- beta:
The parameter for the beta of the activation function.
Return Value
A new common activation function parameters structure.