<?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>Relu on Sanketh's Blog</title><link>https://sankethbk.github.io/blog/tags/relu/</link><description>Recent content in Relu 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/relu/index.xml" rel="self" type="application/rss+xml"/><item><title>Activation Functions: Why Sigmoid Fades and ReLU Won</title><link>https://sankethbk.github.io/blog/posts/ml/2026-09-14-2-activation-functions-sigmoid-relu/</link><pubDate>Mon, 14 Sep 2026 00:00:00 +0000</pubDate><guid>https://sankethbk.github.io/blog/posts/ml/2026-09-14-2-activation-functions-sigmoid-relu/</guid><description>&lt;h1 id="activation-functions-why-sigmoid-fades-and-relu-won"&gt;Activation Functions: Why Sigmoid Fades and ReLU Won&lt;/h1&gt;
&lt;p&gt;The &lt;a href="https://sankethbk.github.io/blog/posts/ml/2026-09-14-1-training-a-2-layer-network-in-numpy"&gt;previous note&lt;/a&gt; finished with pseudocode for a network of any depth
$L$
. One line in that pseudocode deserved more attention:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;dZ[l-1] = dA[l-1] * activation_derivative(A[l-1])
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Everything else in the backward pass is matrix multiplication — copying, scaling, and adding error signals. This one line is different: it is the only place where the network&amp;rsquo;s &lt;em&gt;non-linearity&lt;/em&gt; touches the gradients. The choice of activation function decides whether error signals survive the trip from output back to input, or die on the way.&lt;/p&gt;</description></item></channel></rss>