Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungRefreshed repository pull requests page generally available(22.09.2026 um 03:25 Uhr)
Sichere ProgrammierungThe Joy of Learning the Basics Again(22.09.2026 um 03:28 Uhr)
Sichere ProgrammierungZero-Code OpenTelemetry Tracing for Dagster(22.09.2026 um 03:39 Uhr)
Linux Tipps & Hardening`prime-all`(22.09.2026 um 02:28 Uhr)
IT Security Toolsopensoho v0.15.2(22.09.2026 um 03:33 Uhr)
IT Security NachrichtenUS Proposes AI Incident Alert System in Talks With China, Bessent Says(22.09.2026 um 04:01 Uhr)
Sichere ProgrammierungRefreshed repository pull requests page generally available(22.09.2026 um 03:25 Uhr)
Sichere ProgrammierungThe Joy of Learning the Basics Again(22.09.2026 um 03:28 Uhr)
Sichere ProgrammierungZero-Code OpenTelemetry Tracing for Dagster(22.09.2026 um 03:39 Uhr)
Linux Tipps & Hardening`prime-all`(22.09.2026 um 02:28 Uhr)
IT Security Toolsopensoho v0.15.2(22.09.2026 um 03:33 Uhr)
IT Security NachrichtenUS Proposes AI Incident Alert System in Talks With China, Bessent Says(22.09.2026 um 04:01 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Cross Entropy Derivatives, Part 6: Using gradient descent to reach the final result

In the previous article, We plotted a curve which would help us optimize the bias. In this article, we will get the accurate value for b3. We begin with the derivative of the cross-entropy loss with respect to ( b_3 ). Since we have…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

In the previous article, We plotted a curve which would help us optimize the bias.



In this article, we will get the accurate value for b3.



We begin with the derivative of the cross-entropy loss with respect to ( b_3 ).



Since we have three observations and make one prediction per observation, the total derivative is obtained by summing one term per prediction.






First observation



Let us focus on the prediction for the first observation.



Because the observed species is Setosa, we compute the cross entropy using the predicted probability for Setosa. We already know that





For petal width ( 0.04 ) and sepal width ( 0.42 ), the predicted probability is





So the contribution from the first observation is



0.15 - 1






Second observation



Now consider the second observation.



In this case, the observed species is Virginica, so the derivative is





Using petal width ( 1.0 ) and sepal width ( 0.54 ), the predicted probability for Setosa is











Third observation



Finally, consider the third observation.



The observed species is Versicolor, so the derivative is again





For petal width ( 0.50 ) and sepal width ( 0.37 ), the predicted probability for Setosa is











Total derivative



Adding all three contributions gives



(0.15 - 1) + 0.04 + 0.04 = -0.77



This value represents the slope of the tangent line to the loss curve at ( b_3 = -2 ).









Gradient descent update



We now plug this slope into the gradient descent update rule.





If we set the learning rate to ( 1 ), then





We update ( b_3 ) as follows:





We then repeat this process, using the updated value of ( b_3 ) each time, until the predictions stop improving, a maximum number of steps is reached, or another stopping criterion is met.



In this case, the predictions stop improving when ( b_3 = -0.03 ).



Looking for an easier way to install tools, libraries, or entire repositories?

Try Installerpedia: a community-driven, structured installation platform that lets you install almost anything with minimal hassle and clear, reliable guidance.



Just run:




ipm install repo-name






… and you’re done! 🚀



Installerpedia Screenshot



🔗 Explore Installerpedia here

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Cross Entropy Derivatives, Part 6: Using gradient descent to reach the final result

Thematisch verwandte Begriffe: Cross, Entropy, Derivatives, Part · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-49449 | Joplin is an open source note-taking and to-do application that organise…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick