The sigmoid function frequently appears in machine learning contexts. It has a simple form: $$\sigma(x)=\frac{1}{1+e^{-x}}$$. A naive implementation in C would be: It looks good, right? No, it is not. When $x << 0$, say […]
Month: January 2024
HOWTO: Eclipse 2023-12 + Cygwin + GDB 13 — A Work Around
It was said that GDB 11 or above does not work well with Eclipse with Cygwin. The true reason seems to be that Eclipse sends Windows-style path of your executable to GDB of Cygwin, while […]
Try Word Vector
Explain The Idea Word vector is widely used in text-related AI processes. Its center idea is to maximize the following likelihood function. $$\begin{equation} \label{eq:originalL}L(\theta) = \prod_{t=1}^T \prod_{\substack{-m \le j \le m \\ j \ne 0}} […]