<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Classification on Sanketh's Blog</title><link>https://sankethbk.github.io/blog/tags/classification/</link><description>Recent content in Classification on Sanketh's Blog</description><generator>Hugo -- 0.166.0</generator><language>en-us</language><lastBuildDate>Mon, 14 Sep 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://sankethbk.github.io/blog/tags/classification/index.xml" rel="self" type="application/rss+xml"/><item><title>Softmax and Multiclass Cross-Entropy: Turning Raw Scores Into Probabilities</title><link>https://sankethbk.github.io/blog/posts/ml/2026-09-14-3-softmax-and-multiclass-cross-entropy/</link><pubDate>Mon, 14 Sep 2026 00:00:00 +0000</pubDate><guid>https://sankethbk.github.io/blog/posts/ml/2026-09-14-3-softmax-and-multiclass-cross-entropy/</guid><description>&lt;h1 id="softmax-and-multiclass-cross-entropy-turning-raw-scores-into-probabilities"&gt;Softmax and Multiclass Cross-Entropy: Turning Raw Scores Into Probabilities&lt;/h1&gt;
&lt;p&gt;So far, every classification in these notes has been binary — spam or not, XOR&amp;rsquo;s 0 or 1 — and the output has been single sigmoid feeding binary cross-entropy, whose gradient collapsed to the beautiful
$\delta = a - y$
.&lt;/p&gt;
&lt;p&gt;Real classifiers rarely answer two-way questions. &amp;ldquo;Which of 10 digits is this image?&amp;rdquo; &amp;ldquo;Which of 50,000 tokens comes next?&amp;rdquo; &amp;ldquo;Is this a cat, a dog, or a bird?&amp;rdquo; This note generalizes the output of a neural network to
$k$
classes, and it turns out almost everything we know carries over — with soft-max doing the job sigmoid did.&lt;/p&gt;</description></item></channel></rss>