Add gradient descent arena at /descent#167
Open
ianalloway wants to merge 1 commit into
Open
Conversation
Three loss surfaces with analytic gradients (tilted bowl, two gaussian pits of different depths, rippled bowl) rendered as a contour-banded heatmap; clicking drops SGD, momentum, and bias-corrected Adam at the same point and they race downhill leaving colored trails. Adam's step is scaled 3x lr so the comparison is visually fair. Ripples surface shows SGD stalling in local dips while momentum coasts through; two pits shows optimizers splitting between the shallow and deep minima depending on start point. Learning-rate slider applies live; positions clamp to the domain and optimizers stop at negligible gradient. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgEKRuVdor8KhaiPkv38aQ
✅ Deploy Preview for ianalloway ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ianalloway
marked this pull request as ready for review
July 19, 2026 04:53
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/descent— drop SGD, momentum, and Adam on a loss surface and watch them racesrc/features/descent/optimizers.ts: three surfaces with analytic gradients (tilted bowl, two gaussian pits, rippled bowl), and the three optimizers with proper formulations (momentum with velocity, Adam with bias-corrected first/second moments)src/pages/Descent.tsx: contour-banded loss heatmap rendered to an offscreen buffer, click-to-drop optimizer races with colored trails, surface picker, learning-rate slidersrc/App.tsx: lazy-loaded/descentroute with SEO metadataHow it works
Test plan
/descent— two-pits surface, three dots race from the corner leaving cyan/yellow/pink trailsGenerated by Claude Code