Repository navigation
feat(train): overfitting-risk and reproducibility cards (phase 4a) - #56
Merged
Merged
Conversation
Overfitting risk: a Low/Moderate/High meter beside Regularisation that compares trainable parameters with training points, adjusted for label noise and active regularisation, with a one-line explanation and a suggestion. Updates as layers, classes, samples, noise, split or regularisation change and when data loads. Level and meter come from one effective ratio, so the fill always sits in its labelled band. Reproducibility: seed (with a new-seed button), weight initialiser (He normal, Glorot uniform, LeCun normal) and a lock. A seedable random source (Mulberry32) now drives dataset generation, the train/validation split and batch order; TF.js initialisers get per-layer seeds. Locked, the same seed repeats a run exactly; unlocked, each dataset load draws a new seed so the seed shown always describes the current run. Dropout stays unseeded on purpose: a seeded TF.js dropout reuses one mask on every batch. Seed and initialiser count as model settings for the stale-model badge, and an invalid seed is rejected by InitializeNetworkCommand. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Phase 4a of the redesign: the two cards designed in the mockups next to Regularisation. Based directly on
main.Overfitting risk
65 parameters · 160 training points).Reproducibility
core/domain/Random.ts: a seedable Mulberry32 stream that now drives dataset generation, the train/validation split and batch order. When unseeded it falls back toMath.random, so existing test spies still work.Testing
Random(including repeatable shuffles and datasets),OverfittingRisk, seededTFNeuralNetinitialisation,ReproducibilityPanelandOverfittingRiskCard. Full suite: 1,217 passed.tscandeslintare clean.🤖 Generated with Claude Code