Day 9 of self-studying ML — entropy, cross-entropy, and logistic regression notes [D]
Mirrored from r/MachineLearning for archival readability. Support the source by reading on the original site.
| new set of notes up, covering entropy and information theory then working through KL divergence and cross entropy, ending with why logistic regression's loss function is called cross entropy loss in the first place the connection to the homework problem is what made it worth posting. the assignment has you show that maximizing the likelihood of the labels is equivalent to minimizing J(w), the loss function from the logistic regression chapter. you write out the likelihood as a product across the dataset, take the log to turn it into a sum, and the negative of that log likelihood turns out to be exactly J(w). so cross entropy loss isn't just a name someone picked for it, it comes directly out of maximizing likelihood what helped was doing the entropy notes first. once you've seen H(p,q) equals D(p, q) plus H(p), and worked through why KL divergence is basically the extra bits wasted from using the wrong distribution, the logistic regression derivation stops feeling like a formula to memorize and starts feeling like the obvious result of penalizing the model for putting probability mass in the wrong place full notes are on my github, link's in my profile if you want the pdf anyone want me to share how I've been structuring the whole self study path, course order and what came before this [link] [comments] |
More from r/MachineLearning
-
A collision-entropy floor for watermark/retrieval AI-text detection. Looking for a sanity check before I take this further [D]
Aug 14
-
Are supervised and unsupervised learning still relevant today? [D]
Aug 14
-
TMLR Relevance and Prestige [D]
Aug 13
-
Reproducible canvas-aligned low-level patterns in somerandomllm-generated images and their possible relation to iterative editing artifacts [D]
Aug 13
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.