Important machine learning equations
chizkidd.github.io
Important machine learning equations
1–10 of 39 posts
Re: Important machine learning equations
#2 return -np.sum(p * np.log(p, where=p > 0))
Using `where` in ufuncs like log results in the output being uninitialized (undefined) at the locations where the condition is not met. Summing over that array will return incorrect results for sure.Better would be e.g.
return -np.sum((p * np.log(p))[p > 0])
Also, the cross entropy code doesn't match the equation. And, as explained in the comment below the post, Ax+b is not a linear operation but affine (because of the +b).Overall it seems like an imprecise post to me. Not bad, but not stringent enough to serve as a reference.
Re: Important machine learning equations
#3In the entropy implementation: return -np.sum(p * np.log(p, where=p > 0)) Using `where` in ufuncs like log results in the output being uninitialized (undefined) at the locations where the condition is not met. Summing over that array will return incorrect results for sure. Better would be e.g. return -np.sum((p * np.log(p))[p > 0]) Also, the cross entropy code doesn't match the equation. And, as explained in the comm…
"Backpropagation, often referred to as “backward propagation of errors,” is the cornerstone of training deep neural networks. It is a supervised learning algorithm that optimizes the weights and biases of a neural network to minimize the error between predicted and actual outputs.."
https://chizkidd.github.io/2025/05/30/backpropagation/
backpropagation is a supervised machine learning algorithm, pardon?
Re: Important machine learning equations
#4Re: Important machine learning equations
#5Other fitness measures take much longer to converge or are very unreliable in the way in which they bootstrap. MSE can start from a dead cold nothing on threading the needle through 20 hidden layers and still give you a workable gradient in a short period of time.
Re: Important machine learning equations
#6In the entropy implementation: return -np.sum(p * np.log(p, where=p > 0)) Using `where` in ufuncs like log results in the output being uninitialized (undefined) at the locations where the condition is not met. Summing over that array will return incorrect results for sure. Better would be e.g. return -np.sum((p * np.log(p))[p > 0]) Also, the cross entropy code doesn't match the equation. And, as explained in the comm…
I would echo some caution if using as a reference, as in another blog the writer states: "Backpropagation, often referred to as “backward propagation of errors,” is the cornerstone of training deep neural networks. It is a supervised learning algorithm that optimizes the weights and biases of a neural network to minimize the error between predicted and actual outputs.." https://chizkidd.github.io/2025/05/30/backpropa…
I guess giving the (mathematically) simple principle of computing a gradient with the chain rule the fancy name "backpropagation" comes from the early days of AI where the computers were much less powerful and this seemed less obvious?
Re: Important machine learning equations
#7Are eigenvalues or singular values used much in the popular recent stuff, like LLMs?
Re: Important machine learning equations
#8It makes me sad to see LLM slop on the front page.
Re: Important machine learning equations
#9> This blog post has explored the most critical equations in machine learning, from foundational probability and linear algebra to advanced concepts like diffusion and attention. With theoretical explanations, practical implementations, and visualizations, you now have a comprehensive resource to understand and apply ML math. Point anyone asking about core ML math here—they’ll learn 95% of what they need in one place…
Re: Important machine learning equations
#10> This blog post has explored the most critical equations in machine learning, from foundational probability and linear algebra to advanced concepts like diffusion and attention. With theoretical explanations, practical implementations, and visualizations, you now have a comprehensive resource to understand and apply ML math. Point anyone asking about core ML math here—they’ll learn 95% of what they need in one place…
Apart from the “—“, what else gives it away? Just asking from a non-native perspective.