Derivative of the Logistic (Sigmoid) function in assembly language

Опубликовано: 12 Август 2024
на канале: Computing Mongoose
39
5

In the previous video I discussed how to compute the Logistic (Sigmoid) function in x86 64-bit assembly language. This is a continuation, showing how to compute the derivative of the Logistic (Sigmoid) function based on the already computed value. It uses x87 floating point instructions.

As noted also in Wikipedia: in some fields, most notably in the context of artificial neural networks, the term "sigmoid function" is used as an alias for the logistic function.

Sigmoid functions are very important for Artificial Intelligence (AI) algorithms as activation functions. They are employed at the end of artificial neural neurons processing for computing the final neuronal output. The derivative is used in the backward phase of the back propagation algorithm.

Resources:
Wikipedia: https://en.wikipedia.org/wiki/Sigmoid...
Computing the derivation of the Sigmoid function: https://towardsdatascience.com/deriva...
Online Sigmoid derivate calculator: https://www.redcrab-software.com/en/C...
Sigmoid computation:    • Logistic (Sigmoid) function in assemb...  
Simple floating point operations, including exponentiation in assembly language:    • Simple floating point operations in a...  
Convert floating point numbers to string and display:    • Convert 32bit floating point numbers ...  
Display a string in Linux:    • Writing to Linux console in 64bit ass...