def prepare(self):
    'Prepare dataset for the usage.\n\n        Returns\n        -------\n        self\n\n        '
    if (not self.meta_container.exists()):
        if os.path.isfile(self.evaluation_setup_filename(setup_part='evaluate')):
            meta_data = collections.OrderedDict()
            data = MetaDataContainer(filename=os.path.join(self.evaluation_setup_path, 'evaluate.txt')).load()
            map_filename = os.path.join(self.evaluation_setup_path, 'map.txt')
            if os.path.exists(map_filename):
                filename_map = OneToOneMappingContainer(filename=map_filename).load()
            else:
                filename_map = {}
            for item in data:
                if (item.filename not in meta_data):
                    self.process_meta_item(item=item, absolute_path=False, filename_map=filename_map)
                    meta_data[item.filename] = item
            MetaDataContainer(list(meta_data.values())).save(filename=self.meta_file)
            self.load()
    return self
Prepare dataset for the usage.

Returns
-------
self
def prepare(self):
    'Prepare dataset for the usage.\n\n        Returns\n        -------\n        self\n\n        '
    if (not self.meta_container.exists()):
        if os.path.isfile(self.evaluation_setup_filename(setup_part='evaluate')):
            meta_data = collections.OrderedDict()
            data = MetaDataContainer(filename=os.path.join(self.evaluation_setup_path, 'evaluate.txt')).load()
            map_filename = os.path.join(self.evaluation_setup_path, 'map.txt')
            if os.path.exists(map_filename):
                filename_map = OneToOneMappingContainer(filename=map_filename).load()
            else:
                filename_map = {}
            for item in data:
                if (item.filename not in meta_data):
                    self.process_meta_item(item=item, absolute_path=False, filename_map=filename_map)
                    meta_data[item.filename] = item
            MetaDataContainer(list(meta_data.values())).save(filename=self.meta_file)
            self.load()
    return self