battelle.nn.ActivationFunction

class battelle.nn.ActivationFunction(f, fp)

An instance of a activation function

An activation function is a function which is applied to the output signal of a neuron.

f

The activation function

Type

(float) -> float

fp

The first degree derivative of the activation function

Type

(float) -> float

__init__(f, fp)

Methods

__init__(f, fp)