Contents

BNNS.ActivationFunction.linearWithBias(alpha:beta:)

An activation function that returns its input multiplied by a scale and added to a bias.

Declaration

case linearWithBias(alpha: Float, beta: Float)

Discussion

This constant defines an activation function that returns values using the following operation:

alpha*x + beta

The following illustrates the output that the activation function generates from inputs in the range -10...10, an alpha of 2.0, and a beta of 10.0:

[Image]

See Also

Activation Functions