resolveActivationDerivative function
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());