resolveActivationDerivative function

ActivationFunction resolveActivationDerivative(
  1. ActivationAlgorithm activationAlgorithm
)

Resolves an ActivationAlgorithm to the derivative of the mathematical function in the form of an ActivationFunction

Implementation

ActivationFunction resolveActivationDerivative(
  ActivationAlgorithm activationAlgorithm,
) =>
    (weightedSum) => algorithms[activationAlgorithm]!.last(weightedSum());