Cross Entropy Derivatives, Part 3: Chain Rule for a Single Output Class
dev.to·18h·
Discuss: DEV
📐Stochastic Calculus
Preview
Report Post

In the previous article, we prepared a chain rule equation to compute the derivative of cross entropy with respect to bias b3.

We will be solving that in this article step by step.

Let us solve the first part.

We begin by computing the derivative of the cross entropy with respect to the predicted probability for Setosa.

We use a familiar formula:

Applying this here gives


Now let us solve the second part:

We start by writing the softmax equation for the predicted probability:

Taking the derivative with respect to the raw output for Setosa gives

We will use this result in the chain rule.


Now let us solve the final part:

This is the derivative of the raw o…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help