--- license: apache-2.0 tags: - recsys - retrieval - dataset pretty_name: Yambda-5B size_categories: - 1B Dataset: assert event_type in YambdaDataset.INTERACTIONS return self._download(f"{self.dataset_type}/{self.dataset_size}", event_type) def audio_embeddings(self) -> Dataset: return self._download("", "embeddings") def album_item_mapping(self) -> Dataset: return self._download("", "album_item_mapping") def artist_item_mapping(self) -> Dataset: return self._download("", "artist_item_mapping") @staticmethod def _download(data_dir: str, file: str) -> Dataset: data = load_dataset("yandex/yambda", data_dir=data_dir, data_files=f"{file}.parquet") # Returns DatasetDict; extracting the only split assert isinstance(data, DatasetDict) return data["train"] dataset = YambdaDataset("flat", "50m") likes = dataset.interaction("likes") # returns a HuggingFace Dataset ``` ## FAQ ### Are test items presented in training data? Not all, some test items do appear in the training set, others do not. ### Are test users presented in training data? Yes, there are no cold users in the test set. ### How are audio embeddings generated? Using a convolutional neural network inspired by Contrastive Learning of Musical Representations (J. Spijkervet et al., 2021). ### What's the `is_organic` flag? Indicates whether interactions occurred through organic discovery (True) or recommendation-driven pathways (False) ### Which events are considered recommendation-driven? Recommendation events include actions from: - Personalized music feed - Personalized playlists ### What counts as a "listened" track or \\(Listen_+\\)? A track is considered "listened" if over 50% of its duration is played. ### What does it mean when played_ratio_pct is greater than 100? A played_ratio_pct greater than 100% indicates that the user rewound and replayed sections of the trackβ€”so the total time listened exceeds the original track length. These values are expected behavior and not log noise. See [discussion](https://huggingface.co/datasets/yandex/yambda/discussions/10)