Repository navigation
Fort-Boyard - #4
Merged
Merged
Conversation
jsboige
added a commit
that referenced
this pull request
Feb 25, 2026
Added 4 challenge cells to notebooks for session with advanced students: - Challenge #1 (10 pts): Creative prompt for AI poem - 2_PromptEngineering - Challenge #2 (15 pts): Intelligent router with function calling - 4_Function_Calling - Challenge #3 (15 pts): Audio conversational loop with TTS/Whisper - Audio/01-3 - Challenge #4 (10 pts): Project image generation with DALL-E-3 - Image/01-1 Each challenge includes: - Clear objectives and point values - Success criteria checklist - Technical hints - PR submission instructions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jsboige
added a commit
that referenced
this pull request
Feb 25, 2026
…cution - Fixed 2_PromptEngineering.ipynb: removed temperature params (gpt-5-mini only supports temp=1.0) - Cleaned Papermill error outputs and fixed notebook structure - Updated point values from 10/15 to 1/1.5 (on 20 scale) - Re-executed notebook with clean outputs Challenges now use appropriate point scale: - Challenge #1 (Prompt creatif): 1 pt - Challenge #2 (Routeur intelligent): 1.5 pts - Challenge #3 (Boucle audio): 1.5 pts - Challenge #4 (Image projet): 1 pt Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 tasks
This was referenced Apr 28, 2026
jsboige
added a commit
that referenced
this pull request
May 2, 2026
#660) (#684) ai-01 RTX 4090 GPU 2 final checkpoint after run #4 v2 success: - 500/500 episodes, ~5h20 wall clock - Sharpe estimate 2.4454 (vs po-2025 #660 hidden=384 = 2.23, +9.7%) - mean_reward 7.735, std 3.16, max 11.76, min -1.53 - best_avg_reward_10 = 11.0219, mean_trades 769.1 - hyperparams: hidden=512, replay=200K, batch=64, lr=1e-3, eps_decay=0.995 - features: 19 advanced (regime, momentum, statistical, price_acceleration) - data: SPY 2015-01-01 -> 2024-12-31 (yfinance) - intermediate-save kicked in 20 times (#673 fix validated by execution) Files: - model.pt (2.3 MB, state_dict) - metadata.json (hyperparams + metrics + last 50 episode rewards) Resume / load: import torch state = torch.load('checkpoints/dqn/20260502_161533/model.pt') Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced May 2, 2026
Closed
clusterManager-Myia
pushed a commit
that referenced
this pull request
May 4, 2026
Remove 6 PyTorch checkpoint files (~14MB total) from git tracking. Add **/checkpoints/**/*.pt pattern to .gitignore to prevent future commits of large binary model weights. Files remain on disk locally. Hermes audit finding #4 (checkpoint binary in git). Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
6 tasks done
jsboige
added a commit
that referenced
this pull request
May 4, 2026
…oops CRITICAL #1: Separate multi-asset (n_vars=n_assets) from single-asset (n_vars=n_features) modes to fix adjacency dimension mismatch. CRITICAL #2: Add val_loader for early stopping, test set untouched until final evaluation. MAJOR #4: STGAT now builds and passes sector adjacency with self-loops to prevent NaN from isolated nodes (softmax(-inf) on disconnected VIX). MODERATE: normalize_sequences param order (X_val before X_test). MINOR: shuffle=True on train_loader. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
jsboige
added a commit
that referenced
this pull request
May 4, 2026
…im fixes) (#713) * feat(ml): add MTGNN & STGAT cross-asset GNN training scripts with tests (Stage 3) Implements Stage 3 (GNN Cross-Asset) of the ML training curriculum: Track A - MTGNN (Wu et al., KDD 2020): - GraphConstructor: learnable adaptive adjacency via node embeddings - MixHopPropagation: multi-hop graph convolution with depth parameter - DilatedCausalConv + TCNBlock: temporal convolution with gated activation - MTGNNModel: adaptive/static/dynamic graph combination (alpha/beta/gamma) - Combined adjacency: A = 0.6*A_adaptive + 0.2*A_static + 0.2*A_pearson Track B - STGAT (Spatial-Temporal Graph Attention): - GraphAttentionLayer + MultiHeadGAT (Velickovic et al., ICLR 2018) - TemporalAttention: scaled dot-product with causal mask - STGATBlock: spatial GAT + temporal attention + FFN with residuals - STGATModel: stacked blocks with positional encoding Both scripts share the Stage 2 interface pattern: - build_sequences / normalize_sequences / compute_majority_class_baseline - Anti-bias policy (panier_anti_bias, 26 symbols, 7 asset classes) - SECTOR_MAP for static adjacency construction - AMP training, cosine annealing, gradient clipping - CLI with --dry-run / --walk-forward, architecture hyperparams - Import Stage 0 discipline: walk_forward, baselines, transaction_costs Tests: 50/50 passing (26 MTGNN + 24 STGAT), CPU-only smoke tests. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * fix(ml): address PR #713 review — val leakage, adjacency dims, self-loops CRITICAL #1: Separate multi-asset (n_vars=n_assets) from single-asset (n_vars=n_features) modes to fix adjacency dimension mismatch. CRITICAL #2: Add val_loader for early stopping, test set untouched until final evaluation. MAJOR #4: STGAT now builds and passes sector adjacency with self-loops to prevent NaN from isolated nodes (softmax(-inf) on disconnected VIX). MODERATE: normalize_sequences param order (X_val before X_test). MINOR: shuffle=True on train_loader. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
jsboige
added a commit
that referenced
this pull request
May 5, 2026
…alf-split Pipeline audit finding #4 (LOW). Previously, majority_class_baseline() received a naive half-split of the full dataset, which doesn't align with actual walk-forward OOS folds. Now computes the majority class frequency directly from concatenated OOS targets across all folds — no approximation. Affects: train_lstm.py, train_transformer.py
3 tasks
jsboige
added a commit
that referenced
this pull request
May 5, 2026
…alf-split (#737) Pipeline audit finding #4 (LOW). Previously, majority_class_baseline() received a naive half-split of the full dataset, which doesn't align with actual walk-forward OOS folds. Now computes the majority class frequency directly from concatenated OOS targets across all folds — no approximation. Affects: train_lstm.py, train_transformer.py
This was referenced May 5, 2026
3 tasks
simonnaulet
pushed a commit
to simonnaulet/CoursIA
that referenced
this pull request
May 18, 2026
…26 (jsboige#833) Background: po-2026 dashboard post 2026-05-08T21:22:58Z documented 5 issues on the multi-agent prover after the Cycle 12 baseline run on median_voter_theorem (Voting.lean L251). This PR addresses jsboige#1 / jsboige#2 / jsboige#3 — the three blockers that made the prover unsafe and unusable on external LLM providers. CRITICAL jsboige#1 — `lean_server` import was path-dependent (verifier.py) Before: `from lean_server import LeanVerifier` only resolved when the caller's cwd was `agent_tests/`. From any other context (tests, notebooks, sub-process) it raised `ModuleNotFoundError` and either crashed the prover or — worse — was caught silently and made compile() return success=True regardless of build state. Fix: spec-based import via `importlib.util.spec_from_file_location` using `Path(__file__).parent.parent / "lean_server.py"`. Idempotent via a module-level cache. The verifier now works regardless of cwd. HIGH jsboige#3 — sorry guard was bypassable (tools.py) Before: the guard only counted occurrences of the literal token "sorry". An LLM could "improve" sorry_count by inserting `exact _`, `exact ?_`, `admit`, bare `_`, etc. — all non-compiling placeholders that look like progress. Fix: - new `_check_stub_guard()` rejects 6 known placeholder patterns before writing - new `_build_check_or_revert()` runs `lake build` after each write and reverts the file on failure - both `file_replace_sorry` and `file_replace_lines` gain a `build_check=True` default; callers can opt out for speed but the prover loop now never operates on a broken file HIGH jsboige#2 — multi-agent workflow could hang forever (workflow.py + provers.py) Before: `AgentExecutor.handle()` did `await self._agent.run(...)` with no timeout. A stalled provider (zai/openrouter occasionally do) blocked the entire graph. There was also no iteration cap on the cyclic critic→tactic→verify subgraph. Fix: - per-agent timeout (default 90s) via `asyncio.wait_for` - `ProofMessage.iteration` increments on every traversal; when it exceeds `max_iterations` the executor yields output instead of looping - `MultiAgentSorryProver.prove_sorry()` wraps `workflow.run()` in a wall-clock `asyncio.wait_for` (default `max_iterations * 120s`) Tests New `agent_tests/tests/test_prover_guards.py` (20 tests, all passing): - lean_server class loads via spec import (CRITICAL jsboige#1) - get_verifier instantiates with explicit project_dir - 6 stub patterns rejected by `_check_stub_guard` - 7 real tactics accepted by `_check_stub_guard` - comments containing `exact _` ignored - `file_replace_sorry` blocks `exact _` without writing - `file_replace_sorry` writes a real tactic - `ProofMessage` carries iteration cap + bounded default timeout - `MultiAgentSorryProver.prove_sorry` exposes workflow_timeout_s Install New `agent_tests/requirements.txt` documents the prover deps: `agent-framework-openai>=1.3.0`, `openai>=2.0.0`, `python-dotenv`, `pytest`, `pytest-asyncio`. Verified by installing into `coursia-ml-training` env and running the 20 tests. Out of scope (po-2026 issues jsboige#4 / jsboige#5) jsboige#4 (goal extraction cascading errors on Voting.lean) and jsboige#5 (LLM selection) are separate concerns — jsboige#4 needs Voting.lean fixes upstream, jsboige#5 is a config call left to the operator. Both are tracked under jsboige#833. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced Oct 18, 2026
This was referenced Oct 25, 2026
Merged
This was referenced Nov 2, 2026
This was referenced Nov 11, 2026
This was referenced Nov 19, 2026
This was referenced Dec 1, 2026
Merged
This was referenced Dec 1, 2026
Merged
Closed
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.
No description provided.