Add knockout stage results tracking and condition projections on real outcomes#5
Open
nomastudioai wants to merge 2 commits into
Open
Add knockout stage results tracking and condition projections on real outcomes#5nomastudioai wants to merge 2 commits into
nomastudioai wants to merge 2 commits into
Conversation
Runs the daily pipeline: refreshes live Elo from eloratings.net and regenerates the Monte Carlo simulation, projected bracket and README block. Knockout ties remain model projections (no real Round-of-32 / Round-of-16 results are recorded in the repo yet). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmtcBGn7eopeUJMJ41KC9S
The knockout stage through the Round of 16 has been played. Add the real results in a new data/knockout-resultados-2026.json (24 ties, verified against the official bracket topology and the final group tables) and make the projection and Monte Carlo condition on them: - proyeccion.mjs: real winners advance, so the projected bracket now starts from the eight real quarter-finalists (France, Morocco, Spain, Belgium, Norway, England, Argentina, Switzerland). Each played tie also records the model's pre-match pick and whether it hit. - simular.mjs: fixed rounds are no longer sampled, so finalist/champion probabilities reflect the real bracket (eliminated teams drop to 0%). - genera-predicciones.mjs: new "knockout so far: predictions vs results" section (19/24 correct) and a projected-rest-of-bracket section from the quarter-finals; finalist table lists only teams still alive. Projected quarter-finals: France-Morocco, Spain-Belgium, Norway-England, Argentina-Switzerland. Projected champion: Spain. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmtcBGn7eopeUJMJ41KC9S
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
This PR adds support for tracking real knockout stage results and conditioning the tournament projections and Monte Carlo simulations on actual match outcomes. Previously, the model only predicted the entire bracket from the group stage onwards. Now it can incorporate real Round of 32 and Round of 16 results to provide updated predictions for remaining rounds.
Key Changes
New data file (
knockout-resultados-2026.json): Stores real knockout match results (goals, penalties, winner) with metadata about when results were recorded. Includes 16 matches from Round of 32 and Round of 16.Projection logic (
proyeccion.mjs):Simulation logic (
simular.mjs):Report generation (
genera-predicciones.mjs):Updated predictions (PREDICCIONES.md, README.md):
Implementation Details
knockout-resultados-2026.jsondoesn't exist, the system falls back to full bracket prediction[home_goals, away_goals]tupleas_of) in results file controls report generation datehttps://claude.ai/code/session_01GmtcBGn7eopeUJMJ41KC9S