Skip to content

fix(ML/DSA): relabel exercise stubs as Exercice in 3 Lab notebooks (See #2161) - #2570

Merged
jsboige merged 3 commits into
mainfrom
fix/dsa-labs-exercise-labeling-2161
Jun 6, 2026
Merged

jsboige merged 3 commits into
mainfrom
fix/dsa-labs-exercise-labeling-2161

Conversation

@jsboige

@jsboige jsboige commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Summary

Content-based labeling fix for 3 DataScienceWithAgents Lab notebooks, per exercise-example-labeling.md convention.

Changes

Notebook Before After Fix
Lab2-RFP-Analysis 2 labeled + 1 unlabeled 3/3 Exercice "Exemple guide" -> "Exercice 1" header
Lab3-CV-Screening 2 labeled + 1 unlabeled 3/3 Exercice "Exemple guide" -> "Exercice 1" header
Lab4-DataWrangling 1 labeled + 2 "Exemple guide" 3/3 Exercice "Exemple guide 1/2" -> "Exercice 1/2"

Rationale

Per exercise-example-labeling.md: stub = EXERCISE, complete solution = EXAMPLE. These cells contain None assignments and # TODO comments — they are exercise stubs mislabeled as "Exemple guide". Relabeling them is a content-based correction (the canonical fix per #1214/#1336 lessons).

Verification

  • No code cells modified (markdown-only labeling fix)
  • No raise NotImplementedError / assert False / 1/0 (C.1)
  • All stubs preserved verbatim (None assignments, # TODO comments)
  • No solutions added or removed (anti-regression N/A: markdown headers)
  • 3/3 exercises per notebook after fix

See #2161

jsboige and others added 2 commits June 6, 2026 21:18
#2161)

Content-based labeling fix per exercise-example-labeling.md:
- Lab2-RFP-Analysis: unlabeled exercise -> Exercice 1 (was 'Exemple guide')
- Lab3-CV-Screening: unlabeled exercise -> Exercice 1 (was 'Exemple guide')
- Lab4-DataWrangling: 'Exemple guide 1/2' -> Exercice 1/2 (stubs, not worked examples)

All 3 notebooks now have 3/3 properly labeled exercises.
Markdown-only: no code cells touched, stubs preserved (C.2 exception).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Keeps COURSE_CATALOG.generated.json and CATALOG-STATUS markers in sync. See #2433.

Co-Authored-By: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Notebook PR Validation: PASS

  • Notebooks checked: 3
  • Code cells validated: 26
  • 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 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.

[NanoClaw]

Notebook changes — LGTM

The 3 notebook fixes are correct and precisely scoped:

  • Lab2-RFP-Analysis: "Exemple guidé" → "Exercice 1 : Créer une chaîne d'extraction personnalisée" (markdown header relabel only)
  • Lab3-CV-Screening: "Exemple guidé" → "Exercice 1 : Analyser un CV avec une grille à 5 critères" (same pattern)
  • Lab4-DataWrangling: "Exemple guide 1/2" → "Exercice 1/2" (same pattern)

All three are markdown-only changes. No code cells touched, stubs preserved verbatim (None assignments, # TODO comments), no solutions added/removed. Correctly follows the exercise-example-labeling.md convention (stub = EXERCISE, complete = EXAMPLE).

No fake outputs detected. No secrets. No raise NotImplementedError / assert False.

Concern — COURSE_CATALOG scope creep

The catalog diff (74 additions, 74 deletions) touches ~25 notebook entries, but this PR only modifies 3 notebooks. The excess includes:

  • Cell count drift for 5 notebooks not in this PR (e.g. PyMC-15: 44→64 cells, 17→28 code cells — that's a +20 cell delta from PR #2551, not this PR)
  • issue_pr_associee overwritten for ~20 entries with PRs unrelated to this fix (#2530, #2543, #2550, #2551)
  • last_validation bulk-updated to today's date for all touched entries
  • Kernel name change for PyMC-15 ("Python 3" → "Python 3 (ipykernel)")

This looks like a catalog regeneration that pulled in metadata from other recently-merged PRs. It makes this diff much harder to review and risks merge conflicts with concurrent PRs.

Recommendation: Split the catalog — only include the 3 target notebook entries (Lab2, Lab3, Lab4) in this PR. The other metadata updates should go through their own PRs or a dedicated catalog housekeeping pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant