def load_data_from_file(self, filename): try: logger.debug(f"loading data from {filename}") data = read_game_data_from_file(filename) self.loaded_data[filename] = self.convert_to_training_data(data) self.loaded_filenames.add(filename) except Exception as e: logger.warning(str(e))
def load_data_from_file(self, filename): try: logger.debug(f"loading data from {filename}") data = read_game_data_from_file(filename) shuffle(data) data = data[:int(self.config.trainer.random_rate * len(data))] self.loaded_data[filename] = self.convert_to_training_data(data) self.loaded_filenames.add(filename) except Exception as e: logger.warning(str(e))