<jupyter_start><jupyter_text>Download Data The purpose of this notebook is to download the nessecary datasets for the thesis into the data directory `../data`.1. DCASE2018 Task 5 Development Set2. DCASE2018 Task 5 Evaluation SetThe datasets of the DCASE callenge were downloaded using their `dcase_util` pip package.<jupyter_code>import os
import dcase_util<jupyter_output><empty_output><jupyter_text>1. Define data path<jupyter_code># current working directory
#cwd = os.getcwd()
#data_path = cwd + '/data/'

# data path to external SSD
data_path = '/Volumes/Magneto/Datasets/'
data_path<jupyter_output><empty_output><jupyter_text>2. Find dataset to download<jupyter_code>dcase_util.datasets.dataset_list()
dataset_dev = dcase_util.datasets.DCASE2018_Task5_DevelopmentSet(
    data_path=data_path,
    included_content_types=['all']
)
dataset_dev.show()
dataset_eval = dcase_util.datasets.DCASE2018_Task5_EvaluationSet(
    data_path=data_path,
    included_content_types=['all']
)
dataset_eval.show()<jupyter_output><empty_output><jupyter_text>3. Download development dataset<jupyter_code># download the zip files
dataset_dev.download_packages()
# extract the zip files
dataset_dev.extract_packages()<jupyter_output><empty_output><jupyter_text>4. Download evaluation dataset<jupyter_code># download the zip files
dataset_eval.download_packages()
# extract the zip files
dataset_eval.extract_packages()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08932309839497557, 'fraction_numerical': 0.018143754361479414, 'mean_word_length': 7.7975460122699385, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '647249', 'license': 'MIT', 'n_tokens_mistral': 490, 'n_tokens_neox': 468, 'n_words': 105, 'path': 'notebooks/download_data.ipynb', 'repo_name': 'FabianGroeger96/deep-embedded-music', 'size': '1433'}