def get_reduced_configs(self):
iteration_config = self.experiment_group.iteration_config<EOL>if iteration_config is None:<EOL><INDENT>logger.error(<EOL>'<STR_LIT>',<EOL>self.experiment_group.id,<EOL>extra={'<STR_LIT>': True})<EOL>return<EOL><DEDENT>search_manager = self.experiment_group.search_manager<EOL>n_configs_to_keep = search_manager.get_n_config_to_keep_for_iteration(<EOL>iteration=iteration_config.iteration,<EOL>bracket_iteration=iteration_config.bracket_iteration)<EOL>experiments_metrics = self.experiment_group.iteration_config.experiments_metrics<EOL>if experiments_metrics is None:<EOL><INDENT>raise ExperimentGroupException()<EOL><DEDENT>reverse = Optimization.maximize(<EOL>self.experiment_group.hptuning_config.hyperband.metric.optimization)<EOL>experiments_metrics = sorted(experiments_metrics, key=lambda x: x[<NUM_LIT:1>], reverse=reverse)<EOL>return [xp[<NUM_LIT:0>] for xp in experiments_metrics[:n_configs_to_keep]]<EOL>
Reduce the experiments to restart.