Site: show precomputed statistics; drop the upload and the click-to-select route map (#12)
Step 4a of the Python-first core. - analysis/stats/measures.yaml (declarative): outcomes and denominators, route targets and comparison groups, encounter contexts, the route map's stages, six filter presets and the route thresholds (5, 10, 20, 30). - analysis/stats/site_stats.py computes every number the page shows, for every preset, and writes data/public/stats.json: factor tables, models, chance events, encounters, the route map for every outcome, route rankings with q-values at every threshold, the valley map's place and step counts, and The Odds' summary cards. - The page now only displays: app.js, ui.js and explorer.js read stats.json; engine.js is no longer loaded. The three filter controls become one "Runs" menu; minimum runs become fixed thresholds. Removed: "Load a newer route export", click-to-select and "Follow" on the Deep Dive route map, and the unused old valley renderer. The coded runs are a CSV download. - tests/parity/compare_stats.py: every number matches what engine.js computed, for all six presets (factor tables, models, encounters, route rankings at every threshold, route map). Claude-Session: https://claude.ai/code/session_01UCzTd31GphpMXDhQqWrCMQ Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
963b08c522
commit
d04b88e7b4
+3
-2
@@ -8,13 +8,14 @@
|
||||
"dev": "node site/build.js && python3 -m http.server 8000 -d dist",
|
||||
"test:js": "node tests/parity/run_engine.js data/public/form_responses.json tests/out",
|
||||
"test:py": "PYTHONPATH=core python3 -m atlas.coding && cd analysis/stats && PYTHONPATH=../../core python3 analyze.py && cd ../.. && PYTHONPATH=core python3 -m unittest discover -s tests/core -p 'test_*.py'",
|
||||
"test:parity": "python3 tests/parity/compare_runs.py && python3 tests/parity/compare_results.py && python3 tests/parity/compare_routes.py && python3 tests/parity/compare_solver.py",
|
||||
"test:parity": "python3 tests/parity/compare_runs.py && python3 tests/parity/compare_results.py && python3 tests/parity/compare_routes.py && python3 tests/parity/compare_solver.py && python3 tests/parity/compare_stats.py",
|
||||
"test:unit": "node --test tests/core/graph.test.js tests/core/solver.test.js",
|
||||
"test": "npm run test:js && npm run test:py && npm run test:parity && npm run test:unit",
|
||||
"graph": "node analysis/network/build-graph.js",
|
||||
"import-bot": "node collection/bot/import-bot.js",
|
||||
"check-sources": "python3 collection/sources/update_sources.py",
|
||||
"policy": "python3 planner/build_policy.py && python3 planner/policy_report.py"
|
||||
"policy": "python3 planner/build_policy.py && python3 planner/policy_report.py",
|
||||
"stats": "python3 analysis/stats/site_stats.py"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
Reference in New Issue
Block a user