Packages

Common Neural Network functionalities to improve a TWEANN mechanism.

Current section

Files

Jump to
neurotick lib example activation tanh.function.ex
Raw

lib/example/activation/tanh.function.ex

defmodule Neurotick.Example.TanhFunction do
@moduledoc false
@behaviour Neurotick.Base.ActivationFunctionBehaviour
@impl Neurotick.Base.ActivationFunctionBehaviour
def process_activation(input) do
:math.tanh(input)
end
end