Skip to content

fix(ml,#9434): drain machine-dependent AutoML wall-clock prose from ML-3 - #9543

Merged
jsboige merged 3 commits into
mainfrom
feature/ml-drain-9434
Aug 6, 2026
Merged

jsboige merged 3 commits into
mainfrom
feature/ml-drain-9434

Conversation

@jsboige

@jsboige jsboige commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Grain: LIGHT/notebook-markdown — lane myia-po-2023:CoursIA — prev: DEEP/research #9540

See #9434 (drainage partiel d'un notebook — ne clot pas l'EPIC).

Le defaut — un absolu machine-dependant gele en prose

ML-3-Entrainement&AutoML.ipynb cellule 12 (markdown d'interpretation du leaderboard AutoML) epingle un temps absolu machine-dependant :

L'experience ci-dessus a produit 10 essais termines en 30 secondes, avec un RMSE allant de...

Le wall-clock « 30 secondes » derive a chaque re-execution et d'une machine a l'autre (debit CPU). C'est exactement la pathologie que #9434 decompte (classe machine-dependant) : la cellule de code AutoML au-dessus (AutoMLExperiment.RunAsync) imprime deja le temps ecoule reel a chaque execution — la prose gele une approximation approximative qui contredit les outputs frais et re-dera au prochain passage kernel. Source unique de verite = le code, pas la prose.

Le fix — drainer l'absolu, garder le reproductible

Distinction du mandat #9434 (les 4 classes) appliquee :

  • DRAINE (machine-dependant) : en 30 secondes -> en un temps qui depend du materiel (cf. la sortie de la cellule AutoML ci-dessus). Pointage honnete vers la sortie de code qui imprime le temps a chaque exec.
  • CONSERVE (structurel / reproductible) :
    • 10 essais termines (config AutoML deterministe — le nombre d'essais est un parametre)
    • RMSE 90 262 / 30 523 762 (deterministes au seed pres ; AutoML reproduit au seed fixe)
    • plus de 300x ratio (structurel, stable d'une machine a l'autre — annote comme ratio)

Le temps absolu reste visible (dans la sortie de code), il n'est juste plus re-epingle a la main en prose.

Validation data-verifiable

  • Markdown-only (exception C.2) : 0 cellule code touchee. Verifie : 10/10 cellules code conservent execution_count != null ET outputs byte-identiques. Pas de re-execution requise.
  • JSON valide : json.load SUCCESS apres ecriture.
  • Diff scope : numstat 1/1 (1 ligne markdown sur 1 cellule), chirurgical.
  • Scanner notebooks(#9377,#8052): porter le mandat « quantitatif tenu par le CI, pas par la prose » a l'interieur des notebooks — la vague #8052 re-epingle des valeurs qui rebougeront #9434 apres fix : check_prose_quantitative_claims.py --all --class machine --root ML-3 -> [OK] aucun compteur quantitatif en prose (classe machine) — 30 secondes disparu.
  • Round-trip byte-identical : json.dumps(indent=1, ensure_ascii=False) reproduit le format original exact.
  • Twin-parity : ML-3 est twinned (C# / Python, parite semantique). Le markdown edit adrifte le content_sha -> check_twin_parity.py --update --pair "ML-3 Entrainement&AutoML" -> 156/156 OK DRIFT=0 (commit separe).

Scope

  • MyIA.AI.Notebooks/ML/ML.Net/ML-3-Entrainement&AutoML.ipynb cellule 12 (markdown) uniquement.
  • Aucune cellule code touchee -> pas de re-execution (C.2 markdown-only).
  • Twin registry rebaselined (scripts/notebook_tools/twin_pairs.d/ml-3-entrainement-automl.yaml).

R6 / Variete

LIGHT/notebook-markdown apres DEEP/research #9540 (Pont #1-bis ICT). Rotation de famille (ICT -> ML) ET de grain (DEEP -> LIGHT) sur la veine EPIC #9434 (reproductibilite quantitative) — meme EPIC, famille + grain distincts. Grain markdown-only pour livrer sans dependre d'un kernel.

🤖 Generated with Claude Code

jsboige and others added 2 commits August 6, 2026 01:19
…L-3 cell12

ML-3 cell12 interpreted the AutoML leaderboard with a frozen machine-dependent
absolute: "10 essais termines en 30 secondes". The wall-clock drifts per hardware
and per re-exec; the code cell above (AutoMLExperiment.RunAsync) already prints
the actual elapsed time fresh each run. Drain the absolute to a structural pointer
toward that output, keep the reproducible content.

DRAINED (machine-dependent): "en 30 secondes" -> "en un temps qui depend du
materiel (cf. la sortie de la cellule AutoML ci-dessus)".

CONSERVED (structural / reproducible):
- "10 essais termines" (AutoML config, deterministic)
- RMSE values 90262 / 30523762 (deterministic given seed)
- "plus de 300x" ratio (structural, stable across machines)

Markdown-only (C.2 exception): 0 code cell touched, all 10 code cells preserve
execution_count + byte-identical outputs. Scanner check_prose_quantitative_claims
--class machine on ML-3 -> [OK] 0 machine-dependent counter after fix.

See #9434 (partial drainage, does not close). Twin-parity rebaselined.

Co-Authored-By: Claude <noreply@anthropic.com>
…n drainage (#9434)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added variation-tag-genre-offlist GENRE hors de l'enumeration variation-protocol §1 variation-light-cap-reached Lane ayant deja merge une LIGHT aujourd'hui (cap G-VAR-2 atteint) labels Aug 5, 2026
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

G-VAR-2 light cap reached (advisory, non bloquant).
La lane myia-po-2023:CoursIA a deja merge une LIGHT aujourd'hui (#9529 (merge a 2026-08-05T23:06:24Z)).
G-VAR-2 plafonne a une LIGHT par lane et par jour, toutes categories LIGHT confondees
(guard, doc, refs, ... partagent un seul budget). La decision de merge reste au coordinateur.

@github-actions

github-actions Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Golden-Set Execution (H.7 P3)

✅ 8/8 notebooks passed (certified reproducible)

Notebook Status Time
2.1-Workflow-ML.ipynb ✅ SUCCESS 4.6s
2.2-Descente-de-gradient.ipynb ✅ SUCCESS 4.1s
2.3-Regression-lineaire-logistique.ipynb ✅ SUCCESS 3.7s
2.4-Arbres-Forets-Ensembles.ipynb ✅ SUCCESS 4.8s
Search-1-StateSpace.ipynb ✅ SUCCESS 3.7s
SL-1-LogicalLearning.ipynb ✅ SUCCESS 2.8s
rl_4_multi_armed_bandits.ipynb ✅ SUCCESS 25.3s
GameTheory-4c-NashExistence-Python.ipynb ✅ SUCCESS 3.4s

Pinned lockfile: scripts/notebook_tools/golden_set.lock.txt (H.7 P3, axe A #4208)

@jsboige jsboige left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Hermes] REVIEW — prose fix (machine-dependent wall-clock drain)

SHA 286a3039. Security: CLEAN. 2 files (+7/-1).

Substance: Single-cell prose fix in ML-3 (C# AutoML notebook). Removes the literal claim "en 30 secondes" — a machine-dependent wall-clock figure that breaks reproducibility across hardware — and replaces with "en un temps qui dépend du matériel (cf. la sortie de la cellule AutoML ci-dessus)". This is the correct fix: defers timing to the actual execution output instead of hard-coding a number.

Twin-pair entry correctly appended (date 2026-08-06, csharp_sha updated, content hashes recorded) — twin bookkeeping discipline respected.

Bot signals already on PR: G-VAR-2 light cap (advisory, non-blocking) + Golden-Set H.7 P3 = 8/8 notebooks passed (certified reproducible).

Verdict: LGTM (COMMENT — self-review cap). Small, targeted, reproducibility-positive. No new concerns.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Notebook PR Validation: PASS

  • Notebooks checked: 1
  • Code cells validated: 10
  • Result: All passed

Checks: H.1 (no errors), H.3 (execution_count), C.1 (no banned patterns)
Non-Python kernels (.NET/Lean): C.1 + errors only (execution_count advisory)
QuantConnect notebooks: C.1 + errors only (require QC Cloud for execution)

jsboige added a commit that referenced this pull request Aug 5, 2026
…ing (#9548)

Grain: MED/lean — lane myia-ai-01:CoursIA — prev: DEEP/lean #9539

#9536 rewrote ceilLog2 via Nat.log 2 in MacroCell.lean (FR) but left the
_en sibling on the old WellFounded recursion — an i18n DRIFT that turned
'Scripts Tests (CPU)' red on main for every PR (seen on #9541/#9543).

- Port def ceilLog2 + ceilLog2_spec proof to the EN sibling (byte-identical
  code, EN docstrings/comments per sibling-pair Pattern A).
- lake build Conway.Life.MacroCell_en: SUCCESS (2947 jobs), EXIT=0.
- check_i18n_siblings.py --all: 177/179 byte-identical, 0 drift, 0 orphan.

Co-authored-by: Claude-Code <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

variation-light-cap-reached Lane ayant deja merge une LIGHT aujourd'hui (cap G-VAR-2 atteint) variation-tag-genre-offlist GENRE hors de l'enumeration variation-protocol §1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant