Repository navigation
fix(rl4): H.3 output gap — separate comment from print in Exercice 1 - #2389
Merged
Merged
Conversation
…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)
Contributor
Notebook PR Validation: PASS
Checks: H.1 (no errors), H.3 (execution_count), C.1 (no banned patterns) |
clusterManager-Myia
left a comment
Collaborator
There was a problem hiding this comment.
[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:
printstatement correctly separated from the commented-outprinton 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
added a commit
that referenced
this pull request
Jun 4, 2026
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>
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
Fix H.3 output gap in
rl_4_mdp_dp_qlearning.ipynb: cellh2z4f034(Exercice 1) hadprint(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
printstatement.Validation
h2z4f034now produces:Exercice 1 : env FrozenLake slippery cree — <TimeLimit<...>>See #2161