Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-sa-4.0
|
| 3 |
+
tags:
|
| 4 |
+
- advertising
|
| 5 |
+
- conversion-prediction
|
| 6 |
+
- criteo
|
| 7 |
+
- tabular
|
| 8 |
+
pretty_name: "ads-ml-lab — Week 03: Calibration"
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# ads-ml-lab — Week 03: Calibration
|
| 12 |
+
|
| 13 |
+
The data for week 03 of [ads-ml-lab](https://github.com/o0aditya0o/ads-ml-lab), a
|
| 14 |
+
twelve-week course that rebuilds the core model classes of ads measurement from scratch on
|
| 15 |
+
public data. This repo exists so the leaderboard can serve downloads from a CDN instead of
|
| 16 |
+
from a small VM.
|
| 17 |
+
|
| 18 |
+
**This is a derived dataset, not a copy.** It is built by
|
| 19 |
+
[`tools/prepare_data.py`](https://github.com/o0aditya0o/ads-ml-lab/blob/main/judge/prepare_data.py)
|
| 20 |
+
from [`criteo/criteo-attribution-dataset`](https://huggingface.co/datasets/criteo/criteo-attribution-dataset).
|
| 21 |
+
|
| 22 |
+
## The task
|
| 23 |
+
|
| 24 |
+
Predict, per impression, the probability that the user converted within 30 days.
|
| 25 |
+
|
| 26 |
+
`conversion` is an **impression-level** label meaning "the user who saw this impression
|
| 27 |
+
converted within 30 days" — not "this impression caused the conversion". Every impression
|
| 28 |
+
in a converting journey carries a 1. It is a legitimate CVR target; it is not attribution.
|
| 29 |
+
|
| 30 |
+
## Files
|
| 31 |
+
|
| 32 |
+
| file | rows | contents |
|
| 33 |
+
|---|---|---|
|
| 34 |
+
| `train.csv.gz` | 1,500,000 | features **and** the `conversion` label |
|
| 35 |
+
| `test.csv.gz` | 400,000 | features only |
|
| 36 |
+
| `sample_submission.csv.gz` | 400,000 | required submission format, filled with the train base rate |
|
| 37 |
+
|
| 38 |
+
`impression_id` is assigned during preparation and has no meaning upstream. It is the join
|
| 39 |
+
key for scoring.
|
| 40 |
+
|
| 41 |
+
## How it was built
|
| 42 |
+
|
| 43 |
+
- **Time-ordered split.** The boundary is the 70th percentile of `timestamp`, taken
|
| 44 |
+
**before** subsampling. Subsampling first would let a test row predate a train row. Train
|
| 45 |
+
is strictly earlier than test; there is no overlap and no shuffling. A random split on
|
| 46 |
+
this data inflates AUC by an amount that looks like progress.
|
| 47 |
+
- **Subsampled** to 1,500,000 train and 400,000 test rows so a submission is a
|
| 48 |
+
few MB rather than fifty.
|
| 49 |
+
- **Leaky columns removed from the test file:** `conversion`, `conversion_timestamp`,
|
| 50 |
+
`conversion_id`, `cpo`, and `attribution`. That last one is the subtle one — it is
|
| 51 |
+
Criteo's own last-click flag and is nonzero only on converting journeys, so shipping it
|
| 52 |
+
would hand over the label under a different name.
|
| 53 |
+
- The held-out labels are **not** in this repo.
|
| 54 |
+
|
| 55 |
+
## Evaluation
|
| 56 |
+
|
| 57 |
+
The leaderboard ranks on **normalised entropy** (log-loss relative to a base-rate
|
| 58 |
+
predictor), not AUC. AUC is invariant to monotone rescaling, so a model calibrated three
|
| 59 |
+
times too high scores identically on AUC and would overbid every auction threefold. NE is a
|
| 60 |
+
proper scoring rule and sees both ranking and calibration.
|
| 61 |
+
|
| 62 |
+
Base rate is about 4.9%, and it drifts slightly downward across the window — the test half
|
| 63 |
+
converts a little less often than the train half. That drift is part of the problem.
|
| 64 |
+
|
| 65 |
+
## Licence and attribution
|
| 66 |
+
|
| 67 |
+
CC-BY-NC-SA 4.0, inherited from the upstream dataset. Non-commercial use only, and derived
|
| 68 |
+
works must carry the same licence.
|
| 69 |
+
|
| 70 |
+
```bibtex
|
| 71 |
+
@inproceedings{DiemertMeynet2017,
|
| 72 |
+
author = {{Diemert Eustache, Meynet Julien} and Galland, Pierre and Lefortier, Damien},
|
| 73 |
+
title = {Attribution Modeling Increases Efficiency of Bidding in Display Advertising},
|
| 74 |
+
booktitle = {Proceedings of the AdKDD and TargetAd Workshop, KDD, Halifax, NS, Canada, August, 14, 2017},
|
| 75 |
+
year = {2017},
|
| 76 |
+
publisher = {ACM}
|
| 77 |
+
}
|
| 78 |
+
```
|