def __init__(self, storage_name='TUT-rare-sound-events-2017-development', data_path=None, included_content_types=None, synth_parameters=None, dcase_compatibility=True, **kwargs):
    "\n        Constructor\n\n        Parameters\n        ----------\n\n        storage_name : str\n            Name to be used when storing dataset on disk\n            Default value 'TUT-rare-sound-events-2017-development'\n\n        data_path : str\n            Root path where the dataset is stored. If None, os.path.join(tempfile.gettempdir(), 'dcase_util_datasets')\n            is used.\n            Default value None\n\n        included_content_types : list of str or str\n            Indicates what content type should be processed. One or multiple from ['all', 'audio', 'meta', 'code',\n            'documentation']. If None given, ['all'] is used. Parameter can be also comma separated string.\n            Default value None\n\n        synth_parameters : dict\n            Data synthesis parameters.\n            Default value None\n\n        dcase_compatibility : bool\n            Ensure that dataset is generated same way than in DCASE2017 Challenge setup\n            Default value True\n\n        "
    kwargs['included_content_types'] = included_content_types
    kwargs['data_path'] = data_path
    kwargs['storage_name'] = storage_name
    kwargs['filelisthash_exclude_dirs'] = kwargs.get('filelisthash_exclude_dirs', [os.path.join('data', 'mixture_data')])
    kwargs['dataset_group'] = 'event'
    kwargs['dataset_meta'] = {'authors': 'Aleksandr Diment, Annamaria Mesaros, Toni Heittola, and Tuomas Virtanen', 'title': 'TUT Rare Sound Events 2017, development dataset', 'url': None, 'audio_source': 'Synthetic', 'audio_type': 'Natural', 'recording_device_model': 'Unknown', 'microphone_model': 'Unknown'}
    kwargs['crossvalidation_folds'] = 1
    source_url = 'https://zenodo.org/record/401395/files/'
    kwargs['package_list'] = [{'content_type': 'documentation', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.doc.zip'), 'remote_bytes': 21042, 'remote_md5': '47c424fe90d2bdc53d9fdd84341c2783', 'filename': 'TUT-rare-sound-events-2017-development.doc.zip'}, {'content_type': 'code', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.code.zip'), 'remote_bytes': 81518, 'remote_md5': '4cacdf0803daf924a60bf9daa573beb7', 'filename': 'TUT-rare-sound-events-2017-development.code.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.1.zip'), 'remote_bytes': 1072175672, 'remote_md5': '6f1f4156d41b541d1188fcf44c9a8267', 'filename': 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.1.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.2.zip'), 'remote_bytes': 1073378284, 'remote_md5': 'ff5dcbe250e45cc404b7b8a6013002ac', 'filename': 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.2.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.3.zip'), 'remote_bytes': 1069766123, 'remote_md5': 'fb356ae309a40d2f0a38fc1c746835cb', 'filename': 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.3.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.4.zip'), 'remote_bytes': 1070042681, 'remote_md5': '2a68575b2ec7a69e2cc8b16b87fae0c9', 'filename': 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.4.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.5.zip'), 'remote_bytes': 1073380909, 'remote_md5': '84e70d855457a18115108e42ec04501a', 'filename': 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.5.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.6.zip'), 'remote_bytes': 1073021941, 'remote_md5': '048ce898bd434097dd489027f7ba361d', 'filename': 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.6.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.7.zip'), 'remote_bytes': 1069890239, 'remote_md5': '3ef1c89fcfac39918a5edc5abc6ed29b', 'filename': 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.7.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.8.zip'), 'remote_bytes': 180860904, 'remote_md5': '69dcb81e70f4e6605e178693afcd7722', 'filename': 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.8.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_events.zip'), 'remote_bytes': 639119477, 'remote_md5': 'dc4b7eb77078b4cf1b670c6362679473', 'filename': 'TUT-rare-sound-events-2017-development.source_data_events.zip'}]
    kwargs['audio_paths'] = ['audio']
    default_synth_parameters = DictContainer({'train': {'seed': 42, 'event_presence_prob': 0.5, 'mixtures_per_class': 500, 'ebr_list': [(- 6), 0, 6]}, 'test': {'seed': 42, 'event_presence_prob': 0.5, 'mixtures_per_class': 500, 'ebr_list': [(- 6), 0, 6]}})
    if (synth_parameters is None):
        synth_parameters = {}
    synth_parameters = default_synth_parameters.merge(synth_parameters)
    kwargs['meta_filename'] = (('meta_' + synth_parameters.get_hash_for_path()) + '.txt')
    self.synth_parameters = synth_parameters
    self.synth_parameters['train']['param_hash'] = hashlib.md5(yaml.dump({'event_presence_prob': self.synth_parameters['train']['event_presence_prob'], 'mixtures_per_class': self.synth_parameters['train']['mixtures_per_class'], 'ebrs': self.synth_parameters['train']['ebr_list'], 'seed': self.synth_parameters['train']['seed']}).encode('utf-8')).hexdigest()
    self.synth_parameters['test']['param_hash'] = hashlib.md5(yaml.dump({'event_presence_prob': self.synth_parameters['test']['event_presence_prob'], 'mixtures_per_class': self.synth_parameters['test']['mixtures_per_class'], 'ebrs': self.synth_parameters['test']['ebr_list'], 'seed': self.synth_parameters['test']['seed']}).encode('utf-8')).hexdigest()
    self.dcase_compatibility = dcase_compatibility
    super(TUTRareSoundEvents_2017_DevelopmentSet, self).__init__(**kwargs)
    if (('code' not in self.included_content_types) or ('all' not in self.included_content_types)):
        self.included_content_types.append('code')
Constructor

Parameters
----------

storage_name : str
    Name to be used when storing dataset on disk
    Default value 'TUT-rare-sound-events-2017-development'

data_path : str
    Root path where the dataset is stored. If None, os.path.join(tempfile.gettempdir(), 'dcase_util_datasets')
    is used.
    Default value None

included_content_types : list of str or str
    Indicates what content type should be processed. One or multiple from ['all', 'audio', 'meta', 'code',
    'documentation']. If None given, ['all'] is used. Parameter can be also comma separated string.
    Default value None

synth_parameters : dict
    Data synthesis parameters.
    Default value None

dcase_compatibility : bool
    Ensure that dataset is generated same way than in DCASE2017 Challenge setup
    Default value True
def __init__(self, storage_name='TUT-rare-sound-events-2017-development', data_path=None, included_content_types=None, synth_parameters=None, dcase_compatibility=True, **kwargs):
    "\n        Constructor\n\n        Parameters\n        ----------\n\n        storage_name : str\n            Name to be used when storing dataset on disk\n            Default value 'TUT-rare-sound-events-2017-development'\n\n        data_path : str\n            Root path where the dataset is stored. If None, os.path.join(tempfile.gettempdir(), 'dcase_util_datasets')\n            is used.\n            Default value None\n\n        included_content_types : list of str or str\n            Indicates what content type should be processed. One or multiple from ['all', 'audio', 'meta', 'code',\n            'documentation']. If None given, ['all'] is used. Parameter can be also comma separated string.\n            Default value None\n\n        synth_parameters : dict\n            Data synthesis parameters.\n            Default value None\n\n        dcase_compatibility : bool\n            Ensure that dataset is generated same way than in DCASE2017 Challenge setup\n            Default value True\n\n        "
    kwargs['included_content_types'] = included_content_types
    kwargs['data_path'] = data_path
    kwargs['storage_name'] = storage_name
    kwargs['filelisthash_exclude_dirs'] = kwargs.get('filelisthash_exclude_dirs', [os.path.join('data', 'mixture_data')])
    kwargs['dataset_group'] = 'event'
    kwargs['dataset_meta'] = {'authors': 'Aleksandr Diment, Annamaria Mesaros, Toni Heittola, and Tuomas Virtanen', 'title': 'TUT Rare Sound Events 2017, development dataset', 'url': None, 'audio_source': 'Synthetic', 'audio_type': 'Natural', 'recording_device_model': 'Unknown', 'microphone_model': 'Unknown'}
    kwargs['crossvalidation_folds'] = 1
    source_url = 'https://zenodo.org/record/401395/files/'
    kwargs['package_list'] = [{'content_type': 'documentation', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.doc.zip'), 'remote_bytes': 21042, 'remote_md5': '47c424fe90d2bdc53d9fdd84341c2783', 'filename': 'TUT-rare-sound-events-2017-development.doc.zip'}, {'content_type': 'code', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.code.zip'), 'remote_bytes': 81518, 'remote_md5': '4cacdf0803daf924a60bf9daa573beb7', 'filename': 'TUT-rare-sound-events-2017-development.code.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.1.zip'), 'remote_bytes': 1072175672, 'remote_md5': '6f1f4156d41b541d1188fcf44c9a8267', 'filename': 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.1.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.2.zip'), 'remote_bytes': 1073378284, 'remote_md5': 'ff5dcbe250e45cc404b7b8a6013002ac', 'filename': 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.2.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.3.zip'), 'remote_bytes': 1069766123, 'remote_md5': 'fb356ae309a40d2f0a38fc1c746835cb', 'filename': 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.3.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.4.zip'), 'remote_bytes': 1070042681, 'remote_md5': '2a68575b2ec7a69e2cc8b16b87fae0c9', 'filename': 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.4.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.5.zip'), 'remote_bytes': 1073380909, 'remote_md5': '84e70d855457a18115108e42ec04501a', 'filename': 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.5.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.6.zip'), 'remote_bytes': 1073021941, 'remote_md5': '048ce898bd434097dd489027f7ba361d', 'filename': 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.6.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.7.zip'), 'remote_bytes': 1069890239, 'remote_md5': '3ef1c89fcfac39918a5edc5abc6ed29b', 'filename': 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.7.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.8.zip'), 'remote_bytes': 180860904, 'remote_md5': '69dcb81e70f4e6605e178693afcd7722', 'filename': 'TUT-rare-sound-events-2017-development.source_data_bgs_and_cvsetup.8.zip'}, {'content_type': 'audio', 'remote_file': (source_url + 'TUT-rare-sound-events-2017-development.source_data_events.zip'), 'remote_bytes': 639119477, 'remote_md5': 'dc4b7eb77078b4cf1b670c6362679473', 'filename': 'TUT-rare-sound-events-2017-development.source_data_events.zip'}]
    kwargs['audio_paths'] = ['audio']
    default_synth_parameters = DictContainer({'train': {'seed': 42, 'event_presence_prob': 0.5, 'mixtures_per_class': 500, 'ebr_list': [(- 6), 0, 6]}, 'test': {'seed': 42, 'event_presence_prob': 0.5, 'mixtures_per_class': 500, 'ebr_list': [(- 6), 0, 6]}})
    if (synth_parameters is None):
        synth_parameters = {}
    synth_parameters = default_synth_parameters.merge(synth_parameters)
    kwargs['meta_filename'] = (('meta_' + synth_parameters.get_hash_for_path()) + '.txt')
    self.synth_parameters = synth_parameters
    self.synth_parameters['train']['param_hash'] = hashlib.md5(yaml.dump({'event_presence_prob': self.synth_parameters['train']['event_presence_prob'], 'mixtures_per_class': self.synth_parameters['train']['mixtures_per_class'], 'ebrs': self.synth_parameters['train']['ebr_list'], 'seed': self.synth_parameters['train']['seed']}).encode('utf-8')).hexdigest()
    self.synth_parameters['test']['param_hash'] = hashlib.md5(yaml.dump({'event_presence_prob': self.synth_parameters['test']['event_presence_prob'], 'mixtures_per_class': self.synth_parameters['test']['mixtures_per_class'], 'ebrs': self.synth_parameters['test']['ebr_list'], 'seed': self.synth_parameters['test']['seed']}).encode('utf-8')).hexdigest()
    self.dcase_compatibility = dcase_compatibility
    super(TUTRareSoundEvents_2017_DevelopmentSet, self).__init__(**kwargs)
    if (('code' not in self.included_content_types) or ('all' not in self.included_content_types)):
        self.included_content_types.append('code')