Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
task_categories:
|
| 3 |
+
- text-classification
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
tags:
|
| 7 |
+
- headlines
|
| 8 |
+
- click-through-rate
|
| 9 |
+
- preference-learning
|
| 10 |
+
- engagement-prediction
|
| 11 |
+
size_categories:
|
| 12 |
+
- 10K<n<100K
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Headlines CTR Dataset
|
| 16 |
+
|
| 17 |
+
This dataset contains pairs of news headlines with labels indicating which headline received more clicks. It's designed for studying what makes headlines engaging and for training models to predict user preferences.
|
| 18 |
+
|
| 19 |
+
## Dataset Description
|
| 20 |
+
|
| 21 |
+
Each example contains two competing headlines (A and B) that were shown to users, along with engagement metrics and a binary label indicating which performed better.
|
| 22 |
+
|
| 23 |
+
### Dataset Statistics
|
| 24 |
+
- **Train**: 8,781 headline pairs
|
| 25 |
+
- **Validation**: 1,019 headline pairs
|
| 26 |
+
- **Holdout**: 4,357 headline pairs
|
| 27 |
+
- **Total**: 14,157 headline pairs
|
| 28 |
+
|
| 29 |
+
### Features
|
| 30 |
+
|
| 31 |
+
Each example contains:
|
| 32 |
+
- `headline_A`: First headline text
|
| 33 |
+
- `headline_B`: Second headline text
|
| 34 |
+
- `label_pairwise`: 1 if headline A got more clicks, 0 if B got more
|
| 35 |
+
- `ctr_A`: Click-through rate for headline A
|
| 36 |
+
- `ctr_B`: Click-through rate for headline B
|
| 37 |
+
- `ctr_diff`: Difference in CTR (A - B)
|
| 38 |
+
- `counts_A`: [clicks, impressions] for headline A
|
| 39 |
+
- `counts_B`: [clicks, impressions] for headline B
|
| 40 |
+
- `test_id`: Unique identifier for the A/B test
|
| 41 |
+
- `eyecatcher_id`: Identifier for the content piece
|
| 42 |
+
- `created_at`: Timestamp of the test
|
| 43 |
+
- `headlines_concat`: Pre-concatenated text for convenience
|
| 44 |
+
|
| 45 |
+
## Usage
|
| 46 |
+
|
| 47 |
+
```python
|
| 48 |
+
from datasets import load_dataset
|
| 49 |
+
|
| 50 |
+
# Load the dataset
|
| 51 |
+
dataset = load_dataset("Yanjo/headlines-ctr")
|
| 52 |
+
|
| 53 |
+
# Access different splits
|
| 54 |
+
train_data = dataset["train"]
|
| 55 |
+
val_data = dataset["validation"]
|
| 56 |
+
holdout_data = dataset["holdout"]
|
| 57 |
+
|
| 58 |
+
# Example: Get the first training example
|
| 59 |
+
example = train_data[0]
|
| 60 |
+
print(f"Headline A: {example['headline_A']}")
|
| 61 |
+
print(f"Headline B: {example['headline_B']}")
|
| 62 |
+
print(f"Winner: {'A' if example['label_pairwise'] == 1 else 'B'}")
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
## Example
|
| 66 |
+
|
| 67 |
+
```python
|
| 68 |
+
{
|
| 69 |
+
'headline_A': 'Nearly 75% of our crops have vanished in the last 100 years...',
|
| 70 |
+
'headline_B': '100 years ago, people were eating things that most of us will never taste.',
|
| 71 |
+
'label_pairwise': 0, # B performed better
|
| 72 |
+
'ctr_A': 0.0013,
|
| 73 |
+
'ctr_B': 0.0058,
|
| 74 |
+
'ctr_diff': -0.0044
|
| 75 |
+
}
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
## Applications
|
| 79 |
+
|
| 80 |
+
This dataset can be used for:
|
| 81 |
+
- Training models to predict headline engagement
|
| 82 |
+
- Studying linguistic features that drive clicks
|
| 83 |
+
- A/B testing analysis
|
| 84 |
+
- Preference learning research
|
| 85 |
+
- Natural language understanding of persuasive text
|
| 86 |
+
|
| 87 |
+
## Citation
|
| 88 |
+
|
| 89 |
+
If you use this dataset, please cite:
|
| 90 |
+
```bibtex
|
| 91 |
+
@misc{headlines-ctr,
|
| 92 |
+
title={Headlines CTR Dataset},
|
| 93 |
+
author={Yanjo},
|
| 94 |
+
year={2024},
|
| 95 |
+
publisher={HuggingFace}
|
| 96 |
+
}
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
## License
|
| 100 |
+
|
| 101 |
+
Please check with the original data source for licensing information.
|