Skip to main content
  • Done:
    • Merged mahad/ml-scale-dashboard into main (no conflicts, 115 tests passed) and pushed.
    • Hosting choice (decision 0010): Hugging Face no longer runs Streamlit for free. Docker and Gradio Spaces need a paid plan; static Spaces are free. Streamlit Community Cloud needs a github.com repo. So the public page is static: HTML, CSS and plain JavaScript in hosting/space/, no libraries.
    • src/hosting/snapshot.py builds the page’s data into hosting/space/data/ (gitignored) in about 2 seconds:
      • replay.json: the stream’s output for 2024–2025, the model’s test years (21,014 stock-days, 608 event windows, the model’s scores and next-day outcomes);
      • events.json: per event type and retailer group, each year’s CAR path over days −5..+5, the average, a trend forecast for 2026 with a 95% prediction interval, and the model’s flags against real big moves by event day;
      • meta.json: build time, commit and the model’s test scores.
      • It stops if the forecast’s slope differs from stats.py’s trend (they agree).
    • The page has three tabs:
      • Live replay: play/pause, speed, a day slider, an online/store filter, and a retailer to follow. It shows today’s alerts, tomorrow’s watchlist, the model’s running hit rate, alerts per day, the retailer’s cumulative abnormal return and attention, and windows as they close.
      • Event history & forecast: the CAR path per year, the average and the 2026 forecast band; each year’s CAR with the trend and the interval; and the model by event day.
      • About.
      • Every chart has a hover readout and a table view. Light and dark themes, phone width checked.
    • src/hosting/publish_hf.py stages three folders in data/publish/ (dataset, model, space) with cards filled in from the run, and lists them. It uploads only with --upload. Card templates are in hosting/cards/.
    • No prices, volumes or raw returns are published: NOT_PUBLISHED drops ret, mkt_ret, vol_ratio and timestamp_utc, and a test checks it.
    • Tests: tests/test_hosting.py (10). 125 pass.
  • Results worth using in the report or video:
    • Black Friday 2026 forecast (all retailers): +4.9% CAR, 95% prediction interval −5.6% to +15.3%. The trend is +0.51% a year, p = 0.25, so it is not significant. Only Chinese New Year has a trend with p < 0.05 (+0.48% a year, p = 0.04).
    • The model around Black Friday:
      • two and three trading days before it, 26–28% of retailers had a big move (5× an ordinary day; several retailers report earnings that week);
      • the model flagged 33% on day −2 but only 1% on day −3;
      • it mostly reacts to a burst of big moves rather than anticipating the first one.
  • Decisions: 0010 (Proposed).
  • Contracts: none changed.
  • Next:
    1. The team agrees on publishing (decision 0010) and whose Hugging Face account to use.
    2. That person runs hf auth login, then python3 src/hosting/publish_hf.py to check the folders, then again with --upload.
    3. Use both dashboards in the video: Streamlit for the real live run, the public page for the event history.
  • Blocked on / needs from others:
    • Everyone: agree on decisions 0007–0010, and on the licence wording in hosting/cards/dataset.md.
    • Everyone: run pip install -r requirements.txt again for huggingface_hub.
  • Update 2026-11-25 · published: