Datasets:
Commit ·
63f211c
0
Parent(s):
Duplicate from deepvk/VK-LSVD
Browse filesCo-authored-by: Aleksandr Poslavsky <DrSlink@users.noreply.huggingface.co>
This view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +59 -0
- README.md +248 -0
- interactions/test/week_26.parquet +3 -0
- interactions/train/week_00.parquet +3 -0
- interactions/train/week_01.parquet +3 -0
- interactions/train/week_02.parquet +3 -0
- interactions/train/week_03.parquet +3 -0
- interactions/train/week_04.parquet +3 -0
- interactions/train/week_05.parquet +3 -0
- interactions/train/week_06.parquet +3 -0
- interactions/train/week_07.parquet +3 -0
- interactions/train/week_08.parquet +3 -0
- interactions/train/week_09.parquet +3 -0
- interactions/train/week_10.parquet +3 -0
- interactions/train/week_11.parquet +3 -0
- interactions/train/week_12.parquet +3 -0
- interactions/train/week_13.parquet +3 -0
- interactions/train/week_14.parquet +3 -0
- interactions/train/week_15.parquet +3 -0
- interactions/train/week_16.parquet +3 -0
- interactions/train/week_17.parquet +3 -0
- interactions/train/week_18.parquet +3 -0
- interactions/train/week_19.parquet +3 -0
- interactions/train/week_20.parquet +3 -0
- interactions/train/week_21.parquet +3 -0
- interactions/train/week_22.parquet +3 -0
- interactions/train/week_23.parquet +3 -0
- interactions/train/week_24.parquet +3 -0
- interactions/validation/week_25.parquet +3 -0
- metadata/item_embeddings.npz +3 -0
- metadata/items_metadata.parquet +3 -0
- metadata/users_metadata.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_00.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_01.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_02.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_03.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_04.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_05.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_06.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_07.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_08.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_09.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_10.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_11.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_12.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_13.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_14.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_15.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_16.parquet +3 -0
- subsamples/up-0.9_ip-0.9/train/week_17.parquet +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
# Audio files - uncompressed
|
| 39 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
# Audio files - compressed
|
| 43 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
# Image files - uncompressed
|
| 49 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
# Image files - compressed
|
| 54 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
# Video files - compressed
|
| 58 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- tabular-classification
|
| 5 |
+
- tabular-regression
|
| 6 |
+
- graph-ml
|
| 7 |
+
# - recommendation
|
| 8 |
+
# - retrieval
|
| 9 |
+
# - ranking
|
| 10 |
+
# - user-modeling
|
| 11 |
+
- other
|
| 12 |
+
tags:
|
| 13 |
+
- recommendation
|
| 14 |
+
- recsys
|
| 15 |
+
- short-video
|
| 16 |
+
- clips
|
| 17 |
+
- retrieval
|
| 18 |
+
- ranking
|
| 19 |
+
- user-modeling
|
| 20 |
+
- industrial
|
| 21 |
+
- real-world
|
| 22 |
+
size_categories:
|
| 23 |
+
- 10B<n<100B
|
| 24 |
+
language:
|
| 25 |
+
- en
|
| 26 |
+
pretty_name: VK-LSVD
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
# VK-LSVD: Large Short-Video Dataset
|
| 31 |
+
**VK-LSVD** is the largest open industrial short-video recommendation dataset with real-world interactions:
|
| 32 |
+
- **40B** unique user–item interactions with rich feedback (`timespent`, `like`, `dislike`, `share`, `bookmark`, `click_on_author`, `open_comments`) and
|
| 33 |
+
context (`place`, `platform`, `agent`);
|
| 34 |
+
- **10M** users (with `age`, `gender`, `geo`);
|
| 35 |
+
- **20M** short videos (with `duration`, `author_id`, content `embedding`);
|
| 36 |
+
- **Global Temporal Ordering** across **six consecutive months** of user interactions.
|
| 37 |
+
|
| 38 |
+
**Why short video?** Users often watch dozens of clips per session, producing dense, time-ordered signals well suited for modeling.
|
| 39 |
+
Unlike music, podcasts, or long-form video, which are often consumed in the background, short videos are foreground by design. They also do not exhibit repeat exposure.
|
| 40 |
+
Even without explicit feedback, signals such as skips, completions, and replays yield strong implicit labels.
|
| 41 |
+
Single-item feeds also simplify attribution and reduce confounding compared with multi-item layouts.
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
> **Note:** The test set will be released after the upcoming challenge.
|
| 47 |
+
|
| 48 |
+
---
|
| 49 |
+
|
| 50 |
+
[📊 Basic Statistics](#basic-statistics) • [🧱 Data Description](#data-description) • [⚡ Quick Start](#quick-start) • [🧩 Configurable Subsets](#configurable-subsets)
|
| 51 |
+
|
| 52 |
+
---
|
| 53 |
+
|
| 54 |
+
## Basic Statistics
|
| 55 |
+
- Users **10,000,000**
|
| 56 |
+
- Items **19,627,601**
|
| 57 |
+
- Unique interactions **40,774,024,903**
|
| 58 |
+
- Interactions density **0.0208%**
|
| 59 |
+
- Total watch time: **858,160,100,084 s**
|
| 60 |
+
- Likes: **1,171,423,458**
|
| 61 |
+
- Dislikes: **11,860,138**
|
| 62 |
+
- Shares: **262,734,328**
|
| 63 |
+
- Bookmarks: **40,124,463**
|
| 64 |
+
- Clicks on author: **84,632,666**
|
| 65 |
+
- Comment opens: **481,251,593**
|
| 66 |
+
|
| 67 |
+
---
|
| 68 |
+
|
| 69 |
+
## Data Description
|
| 70 |
+
**Privacy-preserving taxonomy** — all categorical metadata (`user_id`, `geo`, `item_id`, `author_id`, `place`, `platform`, `agent`) is anonymized into stable integer IDs (consistent across splits; no reverse mapping provided).
|
| 71 |
+
|
| 72 |
+
### Interactions
|
| 73 |
+
[interactions](https://huggingface.co/datasets/deepvk/VK-LSVD/tree/main/interactions)
|
| 74 |
+
Each row is one observation (a short video shown to a user) with feedback and context. There are no repeated exposures of the same user–item pair.
|
| 75 |
+
**Global Temporal Split (GTS):** `train` / `validation` / `test` preserve time order — train on the past, validate/test on the future.
|
| 76 |
+
**Chronology:** Files are organized by weeks (e.g., week_XX.parquet); rows within each file are in increasing timestamp order.
|
| 77 |
+
|
| 78 |
+
| Field | Type | Description |
|
| 79 |
+
|-----|----|-----------|
|
| 80 |
+
|`user_id`|uint32|User identifier|
|
| 81 |
+
|`item_id`|uint32|Video identifier|
|
| 82 |
+
|`place`|uint8|Place: feed/search/group/… (24 ids)|
|
| 83 |
+
|`platform`|uint8|Platform: Android/Web/TV/… (11 ids) |
|
| 84 |
+
|`agent`|uint8|Agent/client: browser/app (29 ids)|
|
| 85 |
+
|`timespent`|uint8|Watch time (0–255 seconds)|
|
| 86 |
+
|`like`|boolean|User liked the video|
|
| 87 |
+
|`dislike`|boolean|User disliked the video|
|
| 88 |
+
|`share`|boolean|User shared the video|
|
| 89 |
+
|`bookmark`|boolean|User bookmarked the video|
|
| 90 |
+
|`click_on_author`|boolean|User opened author page|
|
| 91 |
+
|`open_comments`|boolean|User opened the comments section |
|
| 92 |
+
|
| 93 |
+
### Users metadata
|
| 94 |
+
[users_metadata.parquet](metadata/users_metadata.parquet)
|
| 95 |
+
| Field | Type | Description |
|
| 96 |
+
|-----|----|-----------|
|
| 97 |
+
|`user_id`|uint32|User identifier|
|
| 98 |
+
|`age`|uint8|Age (18-70 years)|
|
| 99 |
+
|`gender`|uint8|Gender|
|
| 100 |
+
|`geo`|uint8|Most frequent user location (80 ids)|
|
| 101 |
+
|`train_interactions_rank`|uint32|Popularity rank for sampling (lower = more interactions)|
|
| 102 |
+
|
| 103 |
+
### Items metadata
|
| 104 |
+
[items_metadata.parquet](metadata/items_metadata.parquet)
|
| 105 |
+
|
| 106 |
+
| Field | Type | Description |
|
| 107 |
+
|-----|----|-----------|
|
| 108 |
+
|`item_id`|uint32|Video identifier|
|
| 109 |
+
|`author_id`|uint32|Author identifier|
|
| 110 |
+
|`duration`|uint8|Video duration (seconds)|
|
| 111 |
+
|`train_interactions_rank`|uint32|Popularity rank for sampling (lower = more interactions)|
|
| 112 |
+
|
| 113 |
+
### Embeddings: variable width
|
| 114 |
+
**Embeddings are trained strictly on content** (video/description/audio, etc.) — no collaborative signal mixed in.
|
| 115 |
+
**Components are ordered**: the _dot product_ of the first n components approximates the _cosine_ similarity of the original production embeddings.
|
| 116 |
+
This lets researchers pick any dimensionality (**1…64**) to trade quality for speed and memory.
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
[item_embeddings.npz](metadata/item_embeddings.npz)
|
| 120 |
+
|
| 121 |
+
| Field | Type | Description |
|
| 122 |
+
|-----|----|-----------|
|
| 123 |
+
|`item_id`|uint32|Video identifier|
|
| 124 |
+
|`embedding`|float16[64]|Item content embedding with ordered components|
|
| 125 |
+
|
| 126 |
+
---
|
| 127 |
+
|
| 128 |
+
## Quick Start
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
### Load a small subsample
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
```python
|
| 135 |
+
from huggingface_hub import hf_hub_download
|
| 136 |
+
import polars as pl
|
| 137 |
+
import numpy as np
|
| 138 |
+
|
| 139 |
+
subsample_name = 'up0.001_ip0.001'
|
| 140 |
+
content_embedding_size = 32
|
| 141 |
+
|
| 142 |
+
train_interactions_files = [f'subsamples/{subsample_name}/train/week_{i:02}.parquet'
|
| 143 |
+
for i in range(25)]
|
| 144 |
+
val_interactions_file = [f'subsamples/{subsample_name}/validation/week_25.parquet']
|
| 145 |
+
|
| 146 |
+
metadata_files = ['metadata/users_metadata.parquet',
|
| 147 |
+
'metadata/items_metadata.parquet',
|
| 148 |
+
'metadata/item_embeddings.npz']
|
| 149 |
+
|
| 150 |
+
for file in (train_interactions_files +
|
| 151 |
+
val_interactions_file +
|
| 152 |
+
metadata_files):
|
| 153 |
+
hf_hub_download(
|
| 154 |
+
repo_id='deepvk/VK-LSVD', repo_type='dataset',
|
| 155 |
+
filename=file, local_dir='VK-LSVD'
|
| 156 |
+
)
|
| 157 |
+
|
| 158 |
+
train_interactions = pl.concat([pl.scan_parquet(f'VK-LSVD/{file}')
|
| 159 |
+
for file in train_interactions_files])
|
| 160 |
+
train_interactions = train_interactions.collect(engine='streaming')
|
| 161 |
+
|
| 162 |
+
val_interactions = pl.read_parquet(f'VK-LSVD/{val_interactions_file[0]}')
|
| 163 |
+
|
| 164 |
+
train_users = train_interactions.select('user_id').unique()
|
| 165 |
+
train_items = train_interactions.select('item_id').unique()
|
| 166 |
+
|
| 167 |
+
item_ids = np.load('VK-LSVD/metadata/item_embeddings.npz')['item_id']
|
| 168 |
+
item_embeddings = np.load('VK-LSVD/metadata/item_embeddings.npz')['embedding']
|
| 169 |
+
|
| 170 |
+
mask = np.isin(item_ids, train_items.to_numpy())
|
| 171 |
+
item_ids = item_ids[mask]
|
| 172 |
+
item_embeddings = item_embeddings[mask]
|
| 173 |
+
item_embeddings = item_embeddings[:, :content_embedding_size]
|
| 174 |
+
|
| 175 |
+
users_metadata = pl.read_parquet('VK-LSVD/metadata/users_metadata.parquet')
|
| 176 |
+
items_metadata = pl.read_parquet('VK-LSVD/metadata/items_metadata.parquet')
|
| 177 |
+
|
| 178 |
+
users_metadata = users_metadata.join(train_users, on='user_id')
|
| 179 |
+
items_metadata = items_metadata.join(train_items, on='item_id')
|
| 180 |
+
items_metadata = items_metadata.join(pl.DataFrame({'item_id': item_ids,
|
| 181 |
+
'embedding': item_embeddings}),
|
| 182 |
+
on='item_id')
|
| 183 |
+
```
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
---
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
## Configurable Subsets
|
| 190 |
+
|
| 191 |
+
We provide several ready-made slices and simple utilities to compose your own subset that matches your task, data budget, and hardware.
|
| 192 |
+
You can control density via popularity quantiles (`train_interactions_rank`), draw random users,
|
| 193 |
+
or pick specific time windows — while preserving the Global Temporal Split.
|
| 194 |
+
|
| 195 |
+
Representative subsamples are provided for quick experiments:
|
| 196 |
+
|
| 197 |
+
| Subset | Users | Items | Interactions | Density |
|
| 198 |
+
|-----|----:|-----------:|-----------:|-----------:|
|
| 199 |
+
|`whole`|10,000,000|19,627,601|40,774,024,903|0.0208%|
|
| 200 |
+
|`ur0.1`|1,000,000|18,701,510|4,066,457,259|0.0217%|
|
| 201 |
+
|`ur0.01`|100,000|12,467,302|407,854,360|0.0327%|
|
| 202 |
+
|`ur0.01_ir0.01`|90,178|125,018|4,044,900|0.0359%|
|
| 203 |
+
|`up0.01_ir0.01`|100000|171106|38,404,921|0.2245%|
|
| 204 |
+
|`ur0.01_ip0.01`|99,893|196,277|191,625,941|0.9774%|
|
| 205 |
+
|`up0.01_ip0.01`|100,000|196,277|1,417,906,344|7.2240%|
|
| 206 |
+
|`up0.001_ip0.001`|10,000|19,628|47,976,280|24.4428%|
|
| 207 |
+
|`up-0.9_ip-0.9`|8,939,432|17,654,817|2,861,937,212|0.0018%|
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
- `urX` — X fraction of **r**andom **u**sers (e.g., `ur0.01` = 1% of users).
|
| 212 |
+
- `ipX` — X fraction of **p**opular **i**tems (by `train_interactions_rank`)
|
| 213 |
+
- Negative X denotes the least-popular fraction (e.g., `−0.9` → bottom 90%).
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
For example, to get [ur0.01_ip0.01](https://huggingface.co/datasets/deepvk/VK-LSVD/tree/main/subsamples/ur0.01_ip0.01) (1% of **r**andom **u**sers, 1% of most **p**opular **i**tems) use the snippet below.
|
| 217 |
+
```python
|
| 218 |
+
import polars as pl
|
| 219 |
+
|
| 220 |
+
def get_sample(entries: pl.DataFrame, split_column: str, fraction: float) -> pl.DataFrame:
|
| 221 |
+
if fraction >= 0:
|
| 222 |
+
entries = entries.filter(pl.col(split_column) <=
|
| 223 |
+
pl.col(split_column).quantile(fraction,
|
| 224 |
+
interpolation='midpoint'))
|
| 225 |
+
else:
|
| 226 |
+
entries = entries.filter(pl.col(split_column) >=
|
| 227 |
+
pl.col(split_column).quantile(1 + fraction,
|
| 228 |
+
interpolation='midpoint'))
|
| 229 |
+
return entries
|
| 230 |
+
|
| 231 |
+
users = pl.scan_parquet('VK-LSVD/metadata/users_metadata.parquet')
|
| 232 |
+
users_sample = get_sample(users, 'user_id', 0.01).select(['user_id'])
|
| 233 |
+
|
| 234 |
+
items = pl.scan_parquet('VK-LSVD/metadata/items_metadata.parquet')
|
| 235 |
+
items_sample = get_sample(items, 'train_interactions_rank', 0.01).select(['item_id'])
|
| 236 |
+
|
| 237 |
+
interactions = pl.scan_parquet('VK-LSVD/interactions/validation/week_25.parquet')
|
| 238 |
+
interactions = interactions.join(users_sample, on='user_id', maintain_order='left')
|
| 239 |
+
interactions = interactions.join(items_sample, on='item_id', maintain_order='left')
|
| 240 |
+
|
| 241 |
+
interactions_sample = interactions.collect(engine='streaming')
|
| 242 |
+
```
|
| 243 |
+
|
| 244 |
+
To get [up-0.9_ip-0.9](https://huggingface.co/datasets/deepvk/VK-LSVD/tree/main/subsamples/up-0.9_ip-0.9) (90% of least **p**opular **u**sers, 90% of least **p**opular **i**tems) replace users and items sampling lines with
|
| 245 |
+
```python
|
| 246 |
+
users_sample = get_sample(users, 'train_interactions_rank', -0.9).select(['user_id'])
|
| 247 |
+
items_sample = get_sample(items, 'train_interactions_rank', -0.9).select(['item_id'])
|
| 248 |
+
```
|
interactions/test/week_26.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90c44ae75084df74b1c0251cd87daa6aa45d66377a77d1022027486c9a8b6993
|
| 3 |
+
size 14300986995
|
interactions/train/week_00.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3deb3619fd4b52d4f2ee3b2f3ec78a7943534a3037baa3892b25a3dbf6686e3b
|
| 3 |
+
size 9173235132
|
interactions/train/week_01.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1255ab88c40d536d46860444377c4d20db502722de6cde53d2f2cef544fe39a7
|
| 3 |
+
size 13521972280
|
interactions/train/week_02.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:562dfceaf339affb26b94c9afa64811cd24d18c2a6fd3ff295526080b79bcd58
|
| 3 |
+
size 13610634388
|
interactions/train/week_03.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:137cdb98da004dd570bc811ae45cdb97f34ce37c9933915bec04fd60866b9582
|
| 3 |
+
size 12558816575
|
interactions/train/week_04.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be03706eca49c6979a644c7f7b3332394124e0ea6af6f64ad2171b234f8659f1
|
| 3 |
+
size 13006236878
|
interactions/train/week_05.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09c00518381fcd4e304e4ff433f53a01a6e571e962fb2829d1db0f7d7e2f5d19
|
| 3 |
+
size 8824362356
|
interactions/train/week_06.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54ee2729fb885fbb9b2d227d3fd7b372c592ce1508f9370b080aeca5314db4ee
|
| 3 |
+
size 10669599611
|
interactions/train/week_07.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:55dc946551cca264f2b535d3dd31481ba86894673e94d64e3792a0af45e78a15
|
| 3 |
+
size 14592108908
|
interactions/train/week_08.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9d00a7dbbd09989fda66515b21a13ba38b7c41ca6449c77d450cb3af5bc86ef2
|
| 3 |
+
size 14797519556
|
interactions/train/week_09.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df9d5c5bc8e260f62fc28d1756e4ad1a473a6b8b5ebe828128755241a562a6cd
|
| 3 |
+
size 14997936915
|
interactions/train/week_10.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ebd9dc6b6211bf5b438255de6ae9ff2345ba54b69766de418f7239d186892be1
|
| 3 |
+
size 14726410284
|
interactions/train/week_11.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe9007762f376d9ad3bb49b0ca39c320d00655d4c5f54ae57c24600a2dd94006
|
| 3 |
+
size 14768301210
|
interactions/train/week_12.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57199fd4491848b491e9ae9bb2479ed3d18a78b24edfa15a64e43783f2b98554
|
| 3 |
+
size 14800209537
|
interactions/train/week_13.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1c47be366b003ca981a43a172bdb1c3824fece7371b98425cc44f8c643e9c94
|
| 3 |
+
size 15235786985
|
interactions/train/week_14.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f183678a656c5bb93ef3945f8513c2fb2ef04f987866d0a12c718a05196ee53c
|
| 3 |
+
size 15249510451
|
interactions/train/week_15.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd26f9ea67077145762334f84ef4685061bf479bc62bce084430bb32b1e0fc76
|
| 3 |
+
size 15491877997
|
interactions/train/week_16.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb96eb67cc92c4d2b8357965cf20a12284f195cbd2374c23447ceb554988d30c
|
| 3 |
+
size 15103947426
|
interactions/train/week_17.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65004b43f884ab1e2ccd6d4c80ecb357a5fcaa87f588fa4fa64f3f07d83e3570
|
| 3 |
+
size 15483596124
|
interactions/train/week_18.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0fa67ffdb518ef3beebdc89e995d3182f473aad0bac7e69edce17033ea46a90e
|
| 3 |
+
size 15086380364
|
interactions/train/week_19.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:895d1c97baedf5dcbb96d457b922912f72b17ce1d73baac1ea7aa521783ab39e
|
| 3 |
+
size 14213216756
|
interactions/train/week_20.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e524340b3637284aad707f7de2ca59771ccfddf631cb8a4b89def4f8bd0344a
|
| 3 |
+
size 13727414939
|
interactions/train/week_21.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:15e96509d45b4653c57d8ab644f9edb977ece063358cc2380f980bae9bcdf303
|
| 3 |
+
size 14212474339
|
interactions/train/week_22.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f9840fd34aad88b3aee7e7cd842b64366fb719651fa14ed632a92e36de77feb
|
| 3 |
+
size 14729127814
|
interactions/train/week_23.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b001930643b474fe406c853b9bffaf0806cefa25edb96a3981ff92fedf56bd7c
|
| 3 |
+
size 15727223216
|
interactions/train/week_24.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac2cc0cd9675ac541768939540abf159249c340b1b527f5ef11a62990c1e9855
|
| 3 |
+
size 15863815556
|
interactions/validation/week_25.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a1859ce21bf1376f3fb2990738016512d3a842120bdd9fd65b5833334a4ed336
|
| 3 |
+
size 16104375210
|
metadata/item_embeddings.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6a4024ad7623f5d8150e59c5faaaf42fb7d7f48e2beec44c6917e5e57debea7c
|
| 3 |
+
size 2362338243
|
metadata/items_metadata.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:607ffd09d3fb6627f7eec07ed53583d45c47263a2e6538e4deee66cd8a22e51e
|
| 3 |
+
size 155747843
|
metadata/users_metadata.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:51fa9528f71bb0da947311d7baa4727d325285a3e748b54816477b82492aff20
|
| 3 |
+
size 72526148
|
subsamples/up-0.9_ip-0.9/train/week_00.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:55d57fe3e3ae595a11ae7d1ab1124754291d2008e5d0ca8140dd1db12c0e7362
|
| 3 |
+
size 817031150
|
subsamples/up-0.9_ip-0.9/train/week_01.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:89fc6925f78a83b8359078c2b92fa0b53d3460ade384f7307485cdf4cde69304
|
| 3 |
+
size 1004659465
|
subsamples/up-0.9_ip-0.9/train/week_02.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:130dd2d3c4fca90b0d125e9719550b96301577eefc36d52253c43c5e8d9de4c4
|
| 3 |
+
size 1039809728
|
subsamples/up-0.9_ip-0.9/train/week_03.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a683ec814ddf8936e5a5676f4acc47d4a668a9ba866048faa2a81fb6a0b79cce
|
| 3 |
+
size 1008750537
|
subsamples/up-0.9_ip-0.9/train/week_04.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46aa173008a382f34230ff05ff0b82609f963070278451a6ff790255d2349676
|
| 3 |
+
size 908967945
|
subsamples/up-0.9_ip-0.9/train/week_05.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed4601dc177ddb65eb04e7cc42be5a470618dee3fabbcb84bad6eb9653b37713
|
| 3 |
+
size 667485608
|
subsamples/up-0.9_ip-0.9/train/week_06.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5ceda2c920d112af45a30c8893a2785cd6436942a08071bb4107479541672286
|
| 3 |
+
size 728822347
|
subsamples/up-0.9_ip-0.9/train/week_07.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d948d320b7635e494f03246432779a16469a81fc5cd43869c804dfaddb2410a
|
| 3 |
+
size 891427090
|
subsamples/up-0.9_ip-0.9/train/week_08.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3cd01881ee06215e9e7c3efd2fa03c5238934192cbf8729a7b0b526c113b6e8a
|
| 3 |
+
size 868589659
|
subsamples/up-0.9_ip-0.9/train/week_09.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81dbea5536b31ff958b0d53e8826f05f901500e5fe3407768ad7f39825527456
|
| 3 |
+
size 892620936
|
subsamples/up-0.9_ip-0.9/train/week_10.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b103ca62ad1c20b4755f94b25850529d55c0ac796f861eb025f0df42fd98b986
|
| 3 |
+
size 840466151
|
subsamples/up-0.9_ip-0.9/train/week_11.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ca42c6acea13acd4e28c217fd8cfed4d3e5c9e2b47eaedc252d25bb5a4c8ee3
|
| 3 |
+
size 775490575
|
subsamples/up-0.9_ip-0.9/train/week_12.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aec675211a01fd56fe6548c273a1ad6aca46dc943fa7c9fd2c873d9eb166db14
|
| 3 |
+
size 814639345
|
subsamples/up-0.9_ip-0.9/train/week_13.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b67f8fe5f4845cc305941ad9a88975680da2e93c55e719c2bf98b33a86d2f84
|
| 3 |
+
size 858138826
|
subsamples/up-0.9_ip-0.9/train/week_14.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:311ff3e95c3f1e85dfe79d60f62e110332142f06839e57985eda04b0f232dd6f
|
| 3 |
+
size 870920202
|
subsamples/up-0.9_ip-0.9/train/week_15.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e5acc4996186b22fcd2f34565af7337d309a37a3b17adaf5a1012554ec38ba01
|
| 3 |
+
size 884638816
|
subsamples/up-0.9_ip-0.9/train/week_16.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:523a74cfadfc9f17fa1ca0c911115ab96f974b9e51bee4c8ddd073280e8a2568
|
| 3 |
+
size 843728563
|
subsamples/up-0.9_ip-0.9/train/week_17.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:162b20136005f1e21bcca571b6a70df3acf80a23ebcb1eabfb3b224974649e25
|
| 3 |
+
size 865292611
|