--- pretty_name: Cross-Domain RecSys Interactions (15 sources, ~883M) license: other language: [en, zh, "no"] tags: - recommendation - sequential-recommendation - cross-domain - collaborative-filtering - implicit-feedback size_categories: - 100M user_idx maps/item_map_v{1,2,3}.parquet # item_uid <-> item_idx <-> (source, native_item) [meta bridge] meta/meta_v{1,2,3}.parquet # item_idx, source, native_item, title, description valid_items/valid_items_{source}.parquet # native_item, item_uid, n_inter (per source, the meta entrypoints) stats/*.json # per-phase build stats ``` v1=base, v2=sequential, v3=chinese (suffix is consistent across interactions, maps and meta). ## Field meanings **`data/interactions_v*.parquet`** (one row = one user→item interaction) | field | type | meaning | |---|---|---| | `user_idx` | int32 | dense user id, **global** across versions (disjoint ranges), ordered by descending frequency within its version | | `item_idx` | int32 | dense item id, **global** across versions; the key to join `meta`/`item_map` | | `timestamp` | int64 | event time, **unix seconds UTC**. Order-only source amazon_m2 uses a synthetic monotonic per-session step | | `rating` | float32 | rating normalized to **[0,1]** per source (implicit positives = 1.0) | | `rating_raw` | float32 | original source value (e.g. 5.0 stars, Food.com 0–5; 1.0 for implicit) | | `feedback_type` | int8 | 0 explicit_rating · 1 implicit_click · 2 implicit_recommend · 3 implicit_read · 4 implicit_purchase · 5 implicit_checkin · 6 implicit_play · 7 implicit_comment | | `domain` | int16 | sub-domain: amazon category 0–32; other sources 100–115 (one per source/sub) | | `source` | int8 | 0 amazon · 1 goodreads · 2 yelp · 3 movielens · 4 mind · 5 steam · 6 amazon_m2 · 7 hm · 8 adressa · 9 trivago · 10 foursquare · 11 lfm · 12 foodcom · 13 microlens · 14 pixelrec · 15 douban | Rows are sorted within each user by `(timestamp, item_idx)` — a stable tie-break so sequence slicing is reproducible even at daily timestamp granularity. **No train/test split** is applied (do the temporal cutoff at train time). **`maps/user_map_v*.parquet`**: `user_uid` (str, namespaced `"{source}:{native_user_id}"`) ↔ `user_idx`. **`maps/item_map_v*.parquet`**: `item_uid` ↔ `item_idx` ↔ (`source`, `native_item`). `native_item` is the raw item key in the source (parent_asin / book_id / business_id / movieId / article_id / …) — the join key for external metadata. **`meta/meta_v*.parquet`**: `item_idx`, `source`, `native_item`, `title`, `description` (title+description only). **Languages:** v1/v2 mostly English (amazon_m2 multilingual, adressa Norwegian); **v3 = Chinese**. **`valid_items/valid_items_{source}.parquet`**: `native_item`, `item_uid`, `n_inter` — the per-source item lists that survived the k-core; entry points to filter+index any external metadata. ## Metadata coverage - `meta/meta_v1.parquet` — 10,331,150 items (100% of v1), ~3.3 GB. - `meta/meta_v2.parquet` — 920,925 items (text-bearing v2 sources: amazon_m2, hm, foodcom, lfm), ~104 MB. Textless v2 sources have **no** item title/description upstream and are intentionally absent: adressa (url only), trivago (amenity properties only), foursquare/Gowalla (geo only). - `meta/meta_v3.parquet` — 471,446 items (100% of v3; Chinese), ~39 MB. ## Usage ```python # Full corpus (all 3 versions) with 🤗 datasets — schemas are identical so they load as one table from datasets import load_dataset ds = load_dataset("TOPAPEC/cross-domain-recsys-interactions", split="train", streaming=True) print(next(iter(ds))) ``` ```python # Local DuckDB: glob all versions + attach titles by item_idx (download large files first) import duckdb from huggingface_hub import snapshot_download d = snapshot_download("TOPAPEC/cross-domain-recsys-interactions", repo_type="dataset", allow_patterns=["data/*", "meta/*", "maps/*"]) con = duckdb.connect() con.sql(f""" SELECT m.source, m.title, count(*) n FROM read_parquet('{d}/data/interactions_v*.parquet') t JOIN read_parquet('{d}/meta/meta_v*.parquet') m USING (item_idx) GROUP BY 1,2 ORDER BY n DESC LIMIT 10 """).show() ``` ## Metadata-join contract (for attaching your own metadata) Per source: `meta_raw → filter(native_item IN valid_items_{source}) → join(item_map_v* on (source, native_item)) → keyed by item_idx`. Guarantees (asserted in the build tests): every `item_idx` in the corpus has exactly one `item_map` row; every `(source, native_item)` resolves to one `item_uid`; no uid collisions across sources; version index ranges are disjoint. ## Provenance & licenses Derived ETL (interactions + title/description only) from: Amazon Reviews 2023 (McAuley-Lab), Goodreads (UCSD), MovieLens 32M (GroupLens), Yelp Open Dataset, MIND (Microsoft), Steam (McAuley), Amazon-M2 (KDD Cup 2023), H&M (Kaggle), Adressa (NTNU), Trivago (RecSys'19), Gowalla (SNAP), Last.fm-1k, Food.com (Kaggle), MicroLens & PixelRec (Westlake). **You must comply with each source's original license/terms.** Only anonymized interaction tuples + item title/description are redistributed.