mdeff / fma

FMA: A Dataset For Music Analysis
https://arxiv.org/abs/1612.01840
MIT License
2.25k stars 442 forks source link

Selecting Subset of Multiple Genres #56

Closed dylanprins closed 2 years ago

dylanprins commented 2 years ago

Hi! I'm trying to figure out how i can obtain a subset of tracks using a list of genres. I picked a couple of genres. using a list like ["genre1", "genre2", ...] i want to slice the multiindex tracks so i only have the metadata for the tracks of those genres.

With tracks i mean the result you get when loading the tracks.csv.

This way i can feed tracks['track', 'genres_all'] too the fit transform/LabelBinarizer but now i only have the tracks with the genres i picked.

Kind regards, Dylan.

mdeff commented 2 years ago

Hi, thanks for your interest. I'm however unable to code on your behalf. Please look at the notebooks for usage examples.

mdeff commented 2 years ago

Feel however free to paste your solution here. That could be useful for others.