Commit ·
d01e80d
0
Parent(s):
Duplicate from t-tech/T-ECD
Browse filesCo-authored-by: Kirill Lyahnovich <kliakhnovich@users.noreply.huggingface.co>
This view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributesAdded
- README.mdAdded+204
- dataset/full/brands.pqAdded+3
- dataset/full/marketplace/events/00516.pqAdded
- dataset/full/marketplace/events/00517.pqAdded
- dataset/full/marketplace/events/00518.pqAdded
- dataset/full/marketplace/events/00519.pqAdded
- dataset/full/marketplace/events/00520.pqAdded
- dataset/full/marketplace/events/00521.pqAdded
- dataset/full/marketplace/events/00522.pqAdded+3
- dataset/full/marketplace/events/00523.pqAdded
- dataset/full/marketplace/events/00524.pqAdded+3
- dataset/full/marketplace/events/00525.pqAdded+3
- dataset/full/marketplace/events/00526.pqAdded+3
- dataset/full/marketplace/events/00527.pqAdded+3
- dataset/full/marketplace/events/00528.pqAdded+3
- dataset/full/marketplace/events/00529.pqAdded+3
- dataset/full/marketplace/events/00530.pqAdded+3
- dataset/full/marketplace/events/00531.pqAdded+3
- dataset/full/marketplace/events/00532.pqAdded+3
- dataset/full/marketplace/events/00533.pqAdded+3
- dataset/full/marketplace/events/00534.pqAdded+3
- dataset/full/marketplace/events/00535.pqAdded+3
- dataset/full/marketplace/events/00536.pqAdded+3
- dataset/full/marketplace/events/00537.pqAdded+3
- dataset/full/marketplace/events/00538.pqAdded+3
- dataset/full/marketplace/events/00539.pqAdded
- dataset/full/marketplace/events/00540.pqAdded+3
- dataset/full/marketplace/events/00541.pqAdded+3
- dataset/full/marketplace/events/00542.pqAdded+3
- dataset/full/marketplace/events/00543.pqAdded+3
- dataset/full/marketplace/events/00544.pqAdded+3
- dataset/full/marketplace/events/00545.pqAdded+3
- dataset/full/marketplace/events/00546.pqAdded+3
- dataset/full/marketplace/events/00547.pqAdded+3
- dataset/full/marketplace/events/00548.pqAdded+3
- dataset/full/marketplace/events/00549.pqAdded+3
- dataset/full/marketplace/events/00550.pqAdded+3
- dataset/full/marketplace/events/00551.pqAdded+3
- dataset/full/marketplace/events/00552.pqAdded+3
- dataset/full/marketplace/events/00553.pqAdded+3
- dataset/full/marketplace/events/00554.pqAdded+3
- dataset/full/marketplace/events/00555.pqAdded+3
- dataset/full/marketplace/events/00556.pqAdded+3
- dataset/full/marketplace/events/00557.pqAdded+3
- dataset/full/marketplace/events/00558.pqAdded+3
- dataset/full/marketplace/events/00559.pqAdded+3
- dataset/full/marketplace/events/00560.pqAdded+3
- dataset/full/marketplace/events/00561.pqAdded+3
- dataset/full/marketplace/events/00562.pqAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204---license: cc-by-nc-sa-4.0tags:- recsys- e-commerce- retrieval- dataset- ranking- cross-domainlanguage:- ru- ensize_categories:- 100B<n<1Tpretty_name: T-ECD---
# T-ECD: T-Tech E-commerce Cross-Domain Dataset

⭐️ **T-ECD** is a large-scale synthetic cross-domain dataset for recommender systems research, created by T-Bank's RecSys R&D team. It captures real-world e-commerce interaction patterns across multiple domains while ensuring complete anonymity through synthetic generation.
🎯 OverviewT-ECD represents user interactions across five different e-commerce domains within a banking ecosystem:
- **Marketplace** — browsing and interacting with items in an e-commerce marketplace. - **Retail** — interactions within a retail delivery service, including cart additions and completed orders. - **Payments** — online and offline financial transactions between users and brands. - **Offers** — responses to promotional content such as impressions, clicks, and partner transitions. - **Reviews** — explicit user feedback in the form of ratings and embeddings of textual comments.
**Scale:** - **~135B** interactions - ~44M users - ~30M items - **1300+ days of temporal coverage**
Additionally, we provide **T-ECD Small** - a compact version containing 1B interactions that excludes the Payments domain.
<div style="font-size: 1.1em;">
| 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)** |
</div>
<img src="https://cdn-uploads.huggingface.co/production/uploads/645d4947f5760d1530d55023/Y3hHv_cipdq2p4A9jiQoz.png" style="max-width: 80%; height: auto;">
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.
<img src="https://cdn-uploads.huggingface.co/production/uploads/645d4947f5760d1530d55023/QG0DavvcvccN1GcN_gRL6.png" style="max-width: 80%; height: auto;"><img src="https://cdn-uploads.huggingface.co/production/uploads/645d4947f5760d1530d55023/s8a8iC4RmUjsD_hzOVPvD.png" style="max-width: 80%; height: auto;">
---
### 📂 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<img src="https://cdn-uploads.huggingface.co/production/uploads/645d4947f5760d1530d55023/c2Clc9bNxL9i7jgGBfBq2.png" style="max-width: 80%; height: auto;" alt="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.
<img src="https://cdn-uploads.huggingface.co/production/uploads/645d4947f5760d1530d55023/Q7aeb_I-Yf-rcqyPDTOLa.png" style="max-width: 80%; height: auto;" >
- **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
<img src="https://cdn-uploads.huggingface.co/production/uploads/645d4947f5760d1530d55023/zaPAcuD3CItTzP2PBkErs.png" style="max-width: 80%; height: auto;">
**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
```pythonfrom 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="<your_hf_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:
```pythonfrom tecd_downloader import download_dataset
download_dataset( token="<your_hf_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
---123version https://git-lfs.github.com/spec/v1oid sha256:92f017e1f0ba7ef8fa250e95ad2a279f7fc73ab6144f66afa013c9ee8aa1d44dsize 113498227123version https://git-lfs.github.com/spec/v1oid sha256:a416ca6558c443b83fb773969104b9beb4ad99d149f50bc3a9cdf932784e6605size 100383123version https://git-lfs.github.com/spec/v1oid sha256:1997eeb5a5936d77cb5b077375e2760e7df97d7318e2042c739264937cd0c2e0size 100418123version https://git-lfs.github.com/spec/v1oid sha256:f76a8d5c9438181e3a85e1d5ca27dad39574dbc91b84cf5cbd9c1391f2a80981size 108944123version https://git-lfs.github.com/spec/v1oid sha256:f3f119b19884aed4e93fb417485585ad76af2367b9d09c503b8e80b07787915esize 108262123version https://git-lfs.github.com/spec/v1oid sha256:40bfcb8cc20365cae3332fca46116f18934aef6e1f5bf6f94c02ea2222576ef5size 108437123version https://git-lfs.github.com/spec/v1oid sha256:c7a3adbefef5b33f6094fd38d9a12f3127f6a64c20ec952abd8e81ce1e6f8119size 101790123version https://git-lfs.github.com/spec/v1oid sha256:1181736c81e3163ccc79c1c4bba03b2791676a94270e812fba136dea9c2b2db3size 107978123version https://git-lfs.github.com/spec/v1oid sha256:a0d6e6f1e3d2923ff52d31e25e4c351db9b0df1bb619695fb866c07e7447cf62size 109608123version https://git-lfs.github.com/spec/v1oid sha256:3c975f0fd67e6a9a11ac7ab0d676a85d1f921f71d10c7a067a0403ef18361f12size 104031123version https://git-lfs.github.com/spec/v1oid sha256:7030023e8a24a82e1e3f5c219460b91b5f4a3910c680e6a4dff3bbc5aaf7425esize 108818123version https://git-lfs.github.com/spec/v1oid sha256:d4a8b12ab8eea3ed810cea33c3bd89e6b1be74e2be50313c9d4d869ddd50b152size 116980123version https://git-lfs.github.com/spec/v1oid sha256:42ac23ce5b12192192d2b54250fc0141a095cbe21416127b1058be5f0e910971size 109292123version https://git-lfs.github.com/spec/v1oid sha256:aceb7bf715b94e6f0cb6a45b5db40e9d6749721304526cad06e0402fcb5ef0basize 117932123version https://git-lfs.github.com/spec/v1oid sha256:5bb255fbcaa84216a1194b7f305ea404d5b20c880352bd8138a139f8488f5ab4size 125227123version https://git-lfs.github.com/spec/v1oid sha256:ee05cec6d84e569d3ab29b9fc5a953f8e9cb17e2e718c33a10965f7acc8f328fsize 117942123version https://git-lfs.github.com/spec/v1oid sha256:e10b6db15f2fe66fd09c6c74880aa5e03e40bc09c3065e14e065192cf7b484f5size 115468123version https://git-lfs.github.com/spec/v1oid sha256:b8d4d545cc59dffccc67a97da68ab482c4dc60f30f60f9d8417599cf51df2da3size 115066123version https://git-lfs.github.com/spec/v1oid sha256:dc6bf3fa1e5b958e947df547aba491d5ea426862350a53126c723ee155286b04size 111716123version https://git-lfs.github.com/spec/v1oid sha256:c15ad28a9f2b16ad2d2c25d2ff9635512a58b6d8edae7508e6f5c96228ddb906size 123052123version https://git-lfs.github.com/spec/v1oid sha256:d3b106a8871e375eb6961be1bac6029c89a81b5816387561030e3eeed11f6a0bsize 120351123version https://git-lfs.github.com/spec/v1oid sha256:65e11e5fae37dd6e9b92703699dc0e4b16b76be0c43bd6b62b791556b153bb63size 126863123version https://git-lfs.github.com/spec/v1oid sha256:16009680e55ef7bed974dfec1db43933ec25c0df46092aa2cd0081a16863775fsize 136791123version https://git-lfs.github.com/spec/v1oid sha256:54d4df7ddafa238f13e2c11f8055c556c021b12461c5ce0c49b15e4ed690619fsize 134693123version https://git-lfs.github.com/spec/v1oid sha256:94cfe2c23d5cb5a7dc7162e2873d88933994f886dabd21d8223887ad74d7580esize 139777123version https://git-lfs.github.com/spec/v1oid sha256:281541723e5e7807bf43fff30a197b8a75d1e35f69e22cfbb1131cc11cb74e37size 138690123version https://git-lfs.github.com/spec/v1oid sha256:c798595aab7a682aa4678d074468f0478d890c14e9f7d339da868dfcf0afa18csize 140334123version https://git-lfs.github.com/spec/v1oid sha256:ca9e77c095b5bc655d1031a6e35b4e855561a81b1f1d30a36eef2cc460f0a8f6size 135711123version https://git-lfs.github.com/spec/v1oid sha256:6b10f31dc99c52d63651a9482cc671d8ffea6cb5e2df14f6be91f505d749d79dsize 138057123version https://git-lfs.github.com/spec/v1oid sha256:71dcd0b9eb8d8b55017fef046386adb0ea53b415e7b35690ed143f02e50692a8size 125351123version https://git-lfs.github.com/spec/v1oid sha256:090622491a4e6964694ba1a0b48f2045f265ff8f7a2e8c27810535254131a015size 125482123version https://git-lfs.github.com/spec/v1oid sha256:3fb35892dd33c5b456a7679e2588b31f77932f59cd95789761019b3fec1c9d95size 131915123version https://git-lfs.github.com/spec/v1oid sha256:5db0e386f4df5d9c872b2375f3fbe96623f88f5d27aeed00e04cb6b960efb937size 145027123version https://git-lfs.github.com/spec/v1oid sha256:a3043babd47ac1c291b77ab70531150d488fd9d8e867ed4f0937df45d9c32c90size 149058123version https://git-lfs.github.com/spec/v1oid sha256:6a57ba4d1d644d4c4ec71a7b20d9230f530c6249c5439df26c1eb3587fe2f04asize 147981123version https://git-lfs.github.com/spec/v1oid sha256:5788d0bc0dd655e354407ac328d1b81faf8bf91ee5dd24255a497d11fac74727size 149147123version https://git-lfs.github.com/spec/v1oid sha256:a7523b5d426310e76d5fb3881d09bc479089fe3107f7713d129af2f1abe5ffc6size 151670123version https://git-lfs.github.com/spec/v1oid sha256:bb52018b6d56073fe68357ec25fc07073ef4c20c0b257b08c9336d8b198df098size 140809123version https://git-lfs.github.com/spec/v1oid sha256:c3be04ceb9965f5b4dc2dfe9282cc971c86e580cac01856a8738e9ba7673bdeasize 149020123version https://git-lfs.github.com/spec/v1oid sha256:56d5f68fc1edf8e4b4b5b625038c51345e6ee5f94c59ec1855e667ce25484b53size 134913.gitattributesAdded
README.mdAdded+204
dataset/full/brands.pqAdded+3
dataset/full/marketplace/events/00516.pqAdded
dataset/full/marketplace/events/00517.pqAdded
dataset/full/marketplace/events/00518.pqAdded
dataset/full/marketplace/events/00519.pqAdded
dataset/full/marketplace/events/00520.pqAdded
dataset/full/marketplace/events/00521.pqAdded
dataset/full/marketplace/events/00522.pqAdded+3
dataset/full/marketplace/events/00523.pqAdded
dataset/full/marketplace/events/00524.pqAdded+3
dataset/full/marketplace/events/00525.pqAdded+3
dataset/full/marketplace/events/00526.pqAdded+3
dataset/full/marketplace/events/00527.pqAdded+3
dataset/full/marketplace/events/00528.pqAdded+3
dataset/full/marketplace/events/00529.pqAdded+3
dataset/full/marketplace/events/00530.pqAdded+3
dataset/full/marketplace/events/00531.pqAdded+3
dataset/full/marketplace/events/00532.pqAdded+3
dataset/full/marketplace/events/00533.pqAdded+3
dataset/full/marketplace/events/00534.pqAdded+3
dataset/full/marketplace/events/00535.pqAdded+3
dataset/full/marketplace/events/00536.pqAdded+3
dataset/full/marketplace/events/00537.pqAdded+3
dataset/full/marketplace/events/00538.pqAdded+3
dataset/full/marketplace/events/00539.pqAdded
dataset/full/marketplace/events/00540.pqAdded+3
dataset/full/marketplace/events/00541.pqAdded+3
dataset/full/marketplace/events/00542.pqAdded+3
dataset/full/marketplace/events/00543.pqAdded+3
dataset/full/marketplace/events/00544.pqAdded+3
dataset/full/marketplace/events/00545.pqAdded+3
dataset/full/marketplace/events/00546.pqAdded+3
dataset/full/marketplace/events/00547.pqAdded+3
dataset/full/marketplace/events/00548.pqAdded+3
dataset/full/marketplace/events/00549.pqAdded+3
dataset/full/marketplace/events/00550.pqAdded+3
dataset/full/marketplace/events/00551.pqAdded+3
dataset/full/marketplace/events/00552.pqAdded+3
dataset/full/marketplace/events/00553.pqAdded+3
dataset/full/marketplace/events/00554.pqAdded+3
dataset/full/marketplace/events/00555.pqAdded+3
dataset/full/marketplace/events/00556.pqAdded+3
dataset/full/marketplace/events/00557.pqAdded+3
dataset/full/marketplace/events/00558.pqAdded+3
dataset/full/marketplace/events/00559.pqAdded+3
dataset/full/marketplace/events/00560.pqAdded+3
dataset/full/marketplace/events/00561.pqAdded+3
dataset/full/marketplace/events/00562.pqAdded+3