- Done:
- Merged
mahad/ml-scale-dashboardintomain(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.pybuilds the page’s data intohosting/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.pystages three folders indata/publish/(dataset, model, space) with cards filled in from the run, and lists them. It uploads only with--upload. Card templates are inhosting/cards/.- No prices, volumes or raw returns are published:
NOT_PUBLISHEDdropsret,mkt_ret,vol_ratioandtimestamp_utc, and a test checks it. - Tests:
tests/test_hosting.py(10). 125 pass.
- Merged
- 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:
- The team agrees on publishing (decision 0010) and whose Hugging Face account to use.
- That person runs
hf auth login, thenpython3 src/hosting/publish_hf.pyto check the folders, then again with--upload. - 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.txtagain forhuggingface_hub.
- Everyone: agree on decisions 0007–0010, and on the licence wording in
- Update 2026-11-25 · published:
- All three are public under Mahad’s Hugging Face account (
mohummadmahad): - Before uploading, a check of the staged folders found no price, volume or raw-return columns, and no personal details or local paths.
- Checked after upload: the page plays with no console errors, its links work, and both cards show without metadata warnings. Hugging Face was still preparing the dataset viewer.
- To publish again after a new run:
python3 src/hosting/snapshot.py, thenpython3 src/hosting/publish_hf.py --upload --code-url https://calendar-effects.mintlify.app(signed in withhf auth login).
- All three are public under Mahad’s Hugging Face account (
Handoffs, newest first