Module set_genome::activations[][src]

Lists constant functions matching the Activation enum variants.

The pool of activation functions is the same as in this paper.

Enums

Activation

Possible activation functions for ANN nodes.

Constants

ABSOLUTE

Returns absolute value of argument.

COSINE

Returns cosine of argument.

GAUSSIAN

Gaussian function with parameters a = 1, b = 0, c = 1 a.k.a. standard normal distribution.

INVERSE

Returns negative argument.

LINEAR

Returns the argument unchanged.

RELU

Returns argument if it is greater than zero, else zero.

SIGMOID

Steepened sigmoid function, the same use in the original NEAT paper.

SINE

Returns sine of argument.

SQUARED

Returns square of argument.

STEP

Returns one if argument greater than zero, else zero.

TANH

It is a rescaled sigmoid function.