Skip to content

fix(rl4): H.3 output gap — separate comment from print in Exercice 1 - #2389

Merged
jsboige merged 1 commit into
mainfrom
fix/rl4-h3-output-gap
Jun 4, 2026
Merged

jsboige merged 1 commit into
mainfrom
fix/rl4-h3-output-gap

Conversation

@jsboige

@jsboige jsboige commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

Fix H.3 output gap in rl_4_mdp_dp_qlearning.ipynb : cell h2z4f034 (Exercice 1) had print(f"Exercice 1...") concatenated on the same line as the preceding comment # print(f"Taux de reussite..."), making the print statement invisible to Python.

Fix

Added a newline between the commented line and the print statement.

Validation

  • Papermill SUCCESS (50s)
  • Before: 17/18 code cells with outputs
  • After: 18/18 code cells with outputs
  • Cell h2z4f034 now produces: Exercice 1 : env FrozenLake slippery cree — <TimeLimit<...>>

See #2161

…gap)

Cell h2z4f034 had  concatenated on the same
line as , making the print part of
the comment and producing no output. Added newline separator.

Before: 17/18 code cells with outputs
After:  18/18 code cells with outputs (Papermill SUCCESS, 50s)
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Notebook PR Validation: PASS

  • Notebooks checked: 1
  • Code cells validated: 18
  • 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)

@clusterManager-Myia clusterManager-Myia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[NanoClaw]

LGTM -- clean formatting fix for the Exercices section (H.3).

  • Exercices cell source split from single string to proper JSON array of lines (standard notebook format). Content unchanged.
  • Exercice 1 cell: print statement correctly separated from the commented-out print on the same line. Now produces a real stdout output (env repr) instead of silently merging with a comment.
  • Exercice 4 cell: source similarly expanded to array-of-lines format, metadata enriched with papermill execution block. Code content identical.
  • Minor output differences: reward 0.872 -> 0.880 (normal stochastic variance on re-run), float formatting 0.0 -> 0 (numpy 2.4.4 change), gymnasium 1.2.0 -> 1.2.3. All expected.
  • No secrets, no fake outputs, no logic issues.

@jsboige
jsboige merged commit 4b754f6 into main Jun 4, 2026
7 of 8 checks passed
@jsboige
jsboige deleted the fix/rl4-h3-output-gap branch June 4, 2026 18:48
jsboige added a commit that referenced this pull request Jun 4, 2026
Rebase on origin/main includes merges #2389, #2392-2394, #2400, #2401.
Catalog regen preserves curated fields (last_validation, issue_pr_associee)
that were updated on main since branch creation.

See #2385
jsboige added a commit that referenced this pull request Jun 4, 2026
…gap) (#2389)

Cell h2z4f034 had  concatenated on the same
line as , making the print part of
the comment and producing no output. Added newline separator.

Before: 17/18 code cells with outputs
After:  18/18 code cells with outputs (Papermill SUCCESS, 50s)
jsboige added a commit that referenced this pull request Jun 5, 2026
* enrich(RL): add PPO from scratch notebook rl_5c_ppo_from_scratch.ipynb (See #295, #1454)

- 26 cells (10 code, 16 markdown), 3 exercises, Papermill SUCCESS (70s)
- H.3 PASS: 10/10 exec_count, 0 errors
- Covers: clipped surrogate objective, PPO agent with mini-batch updates,
  GAE (lambda=0.95), PPO vs A2C comparison
- Exercises: (1) clipped surrogate implementation, (2) GAE ablation,
  (3) PPO vs A2C training comparison
- README RL updated: 8->9 notebooks, parcours, algorithmes, environnements
- Catalog: 512->513 entries

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* chore(catalog): regen after rebase on main — preserve curated fields

Rebase on origin/main includes merges #2389, #2392-2394, #2400, #2401.
Catalog regen preserves curated fields (last_validation, issue_pr_associee)
that were updated on main since branch creation.

See #2385

* chore(catalog): keep main's curated catalog+count-markers, avoid lossy regen (See #2433)

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jun 5, 2026
…gap) (#2389)

Cell h2z4f034 had  concatenated on the same
line as , making the print part of
the comment and producing no output. Added newline separator.

Before: 17/18 code cells with outputs
After:  18/18 code cells with outputs (Papermill SUCCESS, 50s)
jsboige added a commit that referenced this pull request Jun 5, 2026
* enrich(RL): add PPO from scratch notebook rl_5c_ppo_from_scratch.ipynb (See #295, #1454)

- 26 cells (10 code, 16 markdown), 3 exercises, Papermill SUCCESS (70s)
- H.3 PASS: 10/10 exec_count, 0 errors
- Covers: clipped surrogate objective, PPO agent with mini-batch updates,
  GAE (lambda=0.95), PPO vs A2C comparison
- Exercises: (1) clipped surrogate implementation, (2) GAE ablation,
  (3) PPO vs A2C training comparison
- README RL updated: 8->9 notebooks, parcours, algorithmes, environnements
- Catalog: 512->513 entries

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* chore(catalog): regen after rebase on main — preserve curated fields

Rebase on origin/main includes merges #2389, #2392-2394, #2400, #2401.
Catalog regen preserves curated fields (last_validation, issue_pr_associee)
that were updated on main since branch creation.

See #2385

* chore(catalog): keep main's curated catalog+count-markers, avoid lossy regen (See #2433)

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
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.

2 participants