Current section
Files
Jump to
Current section
Files
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