jean-jsj commited on
Commit
88b5478
·
verified ·
1 Parent(s): 67c7679

Card: quickstart snippet, dev_mini, task-based truth-file descriptions

Browse files
Files changed (1) hide show
  1. README.md +26 -7
README.md CHANGED
@@ -20,7 +20,24 @@ size_categories:
20
 
21
  CARD pairs synthetic retail scanner panels with marketing-copy product descriptions that carry the true substitution geometry. Demand is simulated from a known data-generating process; in half the cells, promotion depth responds to a hidden demand shock, so estimators that ignore endogeneity fit the observed data well and still get the counterfactuals wrong. True elasticities and counterfactual outcomes are hidden and used only for scoring.
22
 
23
- **Code, submission format, and scoring harness:** https://github.com/jean-jsj/CARD
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
  ## The 2×2 grid
26
 
@@ -34,27 +51,29 @@ Every cell is the full market — 40 products, 731 stores — and covers 156 wee
34
  ## Layout
35
 
36
  ```
37
- dev/<cell_slug>/
38
  public/ # everything a model may consume
39
  transactions_train_public.csv # product, store, week, units, dollars,
40
  # price, promo_flag, promo_cost, supply_cost_proxy
41
  transactions_holdout_context_public.csv # holdout weeks: prices/promos public, sales withheld
42
- counterfactual_sweep_context_public.csv # the 16 scored price interventions
43
  products_public.csv # product_id, product_text, brand_code
44
  stores_public.csv # store_id, market, chain
45
  hidden/ # DEV SEED ONLY: scoring truth for instant local scoring
46
- transactions_full_hidden.csv # Layer-1 truth (holdout sales)
47
- elasticity_truth_hidden.csv # Layer-2 truth (J x J elasticities)
48
- counterfactual_sweep_truth_hidden.csv # Layer-3 truth (counterfactual demand)
49
  release/
50
  MANIFEST.json # per-file SHA-256
51
  scoring_params.json # scoring config (family, eval window)
52
  release_notes.md, DATASHEET.md
 
 
53
  ```
54
 
55
  **Data-access rule:** models consume `public/` files only. `hidden/` exists for local scoring on the dev seed, never as model input. Eval seeds (added later) ship public-only; their truth stays with the maintainer.
56
 
57
- A `reference/` tree holds the four reference models' submission-format predictions (`reference/<model>/<cell_slug>/`, one directory per corner of the instruments × text grid); their scores and descriptions live in the GitHub repo's `submissions/` directory. A completed datasheet is at `DATASHEET.md`.
58
 
59
  ## Notes
60
 
 
20
 
21
  CARD pairs synthetic retail scanner panels with marketing-copy product descriptions that carry the true substitution geometry. Demand is simulated from a known data-generating process; in half the cells, promotion depth responds to a hidden demand shock, so estimators that ignore endogeneity fit the observed data well and still get the counterfactuals wrong. True elasticities and counterfactual outcomes are hidden and used only for scoring.
22
 
23
+ **Code, submission format, scoring harness, and example notebooks:** https://github.com/jean-jsj/CARD
24
+
25
+ ## Quickstart
26
+
27
+ ```python
28
+ from huggingface_hub import snapshot_download
29
+ import pandas as pd
30
+
31
+ # ~18 MB starter slice (10 stores); use "dev/..." for the full ~1 GB cell
32
+ cell = "complex_log_log_endogenous_seed001"
33
+ snapshot_download(repo_id="jean-jsj/CARD", repo_type="dataset",
34
+ allow_patterns=[f"dev_mini/{cell}/*"], local_dir="benchmark")
35
+
36
+ train = pd.read_csv(f"benchmark/dev_mini/{cell}/public/transactions_train_public.csv")
37
+ products = pd.read_csv(f"benchmark/dev_mini/{cell}/public/products_public.csv")
38
+ ```
39
+
40
+ Then score a first submission in minutes with the [GitHub quickstart](https://github.com/jean-jsj/CARD#try-it-in-3-minutes) or the [notebook ladder](https://github.com/jean-jsj/CARD/tree/main/examples) (Colab-ready). A column-by-column schema is in the repo's [data dictionary](https://github.com/jean-jsj/CARD/blob/main/docs/DATA.md).
41
 
42
  ## The 2×2 grid
43
 
 
51
  ## Layout
52
 
53
  ```
54
+ dev/<cell_slug>/ # full cells (~1 GB each)
55
  public/ # everything a model may consume
56
  transactions_train_public.csv # product, store, week, units, dollars,
57
  # price, promo_flag, promo_cost, supply_cost_proxy
58
  transactions_holdout_context_public.csv # holdout weeks: prices/promos public, sales withheld
59
+ counterfactual_sweep_context_public.csv # the 16 scored price scenarios
60
  products_public.csv # product_id, product_text, brand_code
61
  stores_public.csv # store_id, market, chain
62
  hidden/ # DEV SEED ONLY: scoring truth for instant local scoring
63
+ transactions_full_hidden.csv # full 156-week panel; last 16 weeks = forecasting truth
64
+ elasticity_truth_hidden.csv # the true J x J elasticity matrix
65
+ counterfactual_sweep_truth_hidden.csv # the true counterfactual demand changes
66
  release/
67
  MANIFEST.json # per-file SHA-256
68
  scoring_params.json # scoring config (family, eval window)
69
  release_notes.md, DATASHEET.md
70
+
71
+ dev_mini/<cell_slug>/ # ~18 MB 10-store starter slices (log-log pair)
72
  ```
73
 
74
  **Data-access rule:** models consume `public/` files only. `hidden/` exists for local scoring on the dev seed, never as model input. Eval seeds (added later) ship public-only; their truth stays with the maintainer.
75
 
76
+ A `reference/` tree holds the four reference models' submission-format predictions (`reference/<model>/<cell_slug>/`, one directory per corner of the instruments × text grid); their scores and descriptions live in the GitHub repo's `submissions/` directory, and the estimator code is in its `baselines/` directory. A completed datasheet is at `DATASHEET.md`.
77
 
78
  ## Notes
79