File size: 3,054 Bytes
8210ff6 d794302 8210ff6 9f1fd68 8210ff6 13a408d d794302 8210ff6 d794302 9f1fd68 8210ff6 13a408d d794302 8210ff6 d794302 9f1fd68 8210ff6 13a408d d794302 8210ff6 d794302 9f1fd68 8210ff6 13a408d d794302 8210ff6 d794302 9f1fd68 8210ff6 13a408d d794302 8210ff6 d794302 9f1fd68 8210ff6 13a408d d794302 8210ff6 d794302 9f1fd68 8210ff6 13a408d d794302 8210ff6 d794302 8210ff6 13a408d d794302 13a408d ceb9735 8b18ecf ceb9735 13a408d ceb9735 13a408d a006862 13a408d 6480c72 d794302 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | ---
task_categories:
- other
configs:
- config_name: AmazonReviews2014-Beauty
data_files:
- split: val
path: AmazonReviews2014-Beauty/val.jsonl
- split: test
path: AmazonReviews2014-Beauty/test.jsonl
- config_name: AmazonReviews2014-Sports_and_Outdoors
data_files:
- split: val
path: AmazonReviews2014-Sports_and_Outdoors/val.jsonl
- split: test
path: AmazonReviews2014-Sports_and_Outdoors/test.jsonl
- config_name: AmazonReviews2023-Industrial_and_Scientific
data_files:
- split: val
path: AmazonReviews2023-Industrial_and_Scientific/val.jsonl
- split: test
path: AmazonReviews2023-Industrial_and_Scientific/test.jsonl
- config_name: AmazonReviews2023-Musical_Instruments
data_files:
- split: val
path: AmazonReviews2023-Musical_Instruments/val.jsonl
- split: test
path: AmazonReviews2023-Musical_Instruments/test.jsonl
- config_name: AmazonReviews2023-Office_Products
data_files:
- split: val
path: AmazonReviews2023-Office_Products/val.jsonl
- split: test
path: AmazonReviews2023-Office_Products/test.jsonl
- config_name: Steam
data_files:
- split: val
path: Steam/val.jsonl
- split: test
path: Steam/test.jsonl
- config_name: Yelp-Yelp_2020
data_files:
- split: val
path: Yelp-Yelp_2020/val.jsonl
- split: test
path: Yelp-Yelp_2020/test.jsonl
---
# MemGen Annotations
This is the annotation dataset for the paper **[How Well Does Generative Recommendation Generalize?](https://huggingface.co/papers/2603.19809)**.
<a href="https://huggingface.co/papers/2603.19809"><img src="https://img.shields.io/badge/Paper-ArXiv-red"></a>
<a href="https://github.com/Jamesding000/MemGen-GR"><img src="https://img.shields.io/badge/Code-GitHub-green"></a>
<a href="https://huggingface.co/jamesding0302/memgen-checkpoints"><img src="https://img.shields.io/badge/Models-Hugging%20Face-blue"></a>
The annotations categorize evaluation instances under the leave-one-out protocol:
- **test** split uses the **last** item in the user history sequence as target,
- **val** split uses the **second-to-last** item as target.
## Columns
- `sample_id`: row index within the split in the original dataset.
- `user_id`: raw user identifier (join key).
- `master`: one of `memorization`, `generalization`, `uncategorized`.
- `subcategories`: list of `{rule, hop}` for fine-grained generalization types.
- `all_labels`: all string labels (e.g., `["generalization", "symmetry_3"]`).
## Load in M&G annotations
```python
from datasets import load_dataset
labels = load_dataset(
"jamesding0302/memgen-annotations",
"AmazonReviews2014-Beauty",
split="test",
)
print(labels[0])
```
## Merge with processed dataset
```python
# 1) Load your processed dataset split (must be aligned with labels by row order)
ds = pipeline.split_datasets["test"]
# 2) Append label columns to the original dataset
ds = (ds
.add_column("master", labels["master"])
.add_column("subcategories", labels["subcategories"])
.add_column("all_labels", labels["all_labels"]))
``` |