--- license: cc-by-nc-sa-4.0 tags: - recsys - e-commerce - retrieval - dataset - ranking - cross-domain language: - ru - en size_categories: - 100B | Metric | T-ECD Small | T-ECD Full | |--------|-------------|------------| | ๐Ÿ”„ **Interactions** | ~1B | **~135B** | | ๐Ÿ‘ฅ **Users** | ~3.5M | **~44M** | | ๐Ÿ“ฆ **Items** | ~2.6M | **~30M** | | ๐Ÿช **Brands** | ~29K | **~1M** | | ๐Ÿ“… **Temporal Coverage** | 200+ days | **1300+ days** | | ๐ŸŒ **Domains** | 4 (excl. Payments) | **5 (all domains)** | Cross-domain consistency is achieved by aligning identifiers across all domains: - the same `user_id` always refers to the same individual user, and - the same `brand_id` always refers to the same brand entity. This alignment allows researchers to seamlessly link interactions from different services, enabling studies in transfer learning, cross-domain personalization, and multi-task modeling. --- ### ๐Ÿ“‚ Data Schema The dataset is stored in **Parquet** format with daily partitions (`{day}`). The directory structure is as follows: ``` t-ecd/ โ”œโ”€โ”€ users.pq โ”œโ”€โ”€ brands.pq โ”œโ”€โ”€ marketplace/ โ”‚ โ”œโ”€โ”€ events/{day}.pq โ”‚ โ””โ”€โ”€ items.pq โ”œโ”€โ”€ retail/ โ”‚ โ”œโ”€โ”€ events/{day}.pq โ”‚ โ””โ”€โ”€ items.pq โ”œโ”€โ”€ payments/ โ”‚ โ”œโ”€โ”€ events/{day}.pq โ”‚ โ””โ”€โ”€ receipts/{day}.pq โ”œโ”€โ”€ offers/ โ”‚ โ”œโ”€โ”€ events/{day}.pq โ”‚ โ””โ”€โ”€ items.pq โ””โ”€โ”€ reviews/{day}.pq ``` #### Data availability Temporal distribution of events over domains *Temporal distribution of events over domains* In line with real-world industrial environments, domain-specific data availability varies in historical depth. This reflects practical constraints including data retention policies and product lifecycle stages - newer e-commerce services naturally have shorter histories compared to established banking domains like payments and transactions. ### โš™๏ธ Events and Catalogs - **Events**: Each domain provides logs of user interactions with the following possible columns: - `action_type` โ€” interaction type (e.g., view, click, add-to-cart, order, transaction). - `subdomain` โ€” surface where the interaction occurred (recommendations, catalog, search, checkout, campaign); available in Marketplace and Retail. - `item_id` โ€” present in Marketplace, Retail, and Offers; identifies a specific product or offer. - `brand_id` โ€” present in all domains; denotes the seller, store, or partner associated with an item, offer, or transaction. - `price` โ€” represents the monetary value of the interaction. - `count` โ€” represents the amount of items in single interaction. - `os` โ€” user operating system, available in Marketplace and Retail. - **Item catalogs (`items.pq`)**: Available for Marketplace, Retail, and Offers. Each entry includes: - `item_id` - `brand_id` - category information (if available) - pretrained embedding (if available) - **User catalog (`users.pq`)**: Contains anonymized user attributes such as region and socio-demographic cluster. - **Brand catalog (`brands.pq`)**: Contains `brand_id`, brand-level metadata, and embeddings. #### ๐Ÿงพ Special Structures - **Receipts (`payments/receipts/{day}.pq`)**: Some transactions include detailed receipts with purchased items, their quantities, and prices. Items are aligned with Marketplace and Retail catalogs, enabling fine-grained cross-domain linkage at the product level. - **Reviews (`reviews/{day}.pq`)**: Provide explicit ratings per brand. Raw text reviews are not included; instead, we release pretrained text embeddings to preserve privacy while enabling multimodal research. --- ### ๐Ÿ› ๏ธ Data Collection T-ECD was generated through a multi-step process: 1. **Sampling of event chains**: sequences of interactions were sampled from real logs of T-Bank ecosystem services. 2. **Anonymization**: user and brand identifiers were pseudonymized; sensitive attributes removed. 3. **Synthetic generation**: based on real distributions and event patterns, new synthetic interaction chains were produced, preserving structural properties such as sparsity, heavy tails, cross-domain overlaps, and behavioral contexts. This process ensures that the dataset is privacy-preserving while remaining representative of industrial recommender system data. ## โš ๏ธ Important Note on Temporal Data Usage **To prevent data leakage, events from the final 12 hours should not be used for prediction tasks.** The dataset contains temporal noise that requires maintaining a minimum 12-hour gap between the timestamp of the most recent user event and the prediction timestamp. This constraint applies to both training and testing scenarios to avoid temporal data leakage. ## Download #### Basic Download ```python from huggingface_hub import snapshot_download snapshot_download( repo_id="t-tech/T-ECD", repo_type="dataset", allow_patterns="dataset/full/", local_dir="./t_ecd_data", token="" ) ``` #### Selective Download For advanced usage including selection of domains and date ranges we provide custom downloader [tecd_downloader.py](https://huggingface.co/datasets/t-tech/T-ECD/blob/main/tecd_downloader.py) Example usage: ```python from tecd_downloader import download_dataset download_dataset( token="", dataset_path="dataset/small", local_dir="t_ecd_small_partial", domains=["retail", "marketplace"], day_begin=1300, day_end=1308, max_workers=10 ) ``` --- ### ๐Ÿ” License This dataset is released under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0) licence ---