def finish(self, option=None): mkdir_when_not_exist(abs_path=definitions.ROOT_DIR + '/storage/images') if option: self._plt.savefig(definitions.ROOT_DIR + "/storage/images/" + clock.now_str() + '_' + option) else: self._plt.savefig(definitions.ROOT_DIR + "/storage/images/" + clock.now_str()) self._plt.cla()
def _save(self): mkdir_when_not_exist(abs_path=definitions.ROOT_DIR + '/storage/' + self.objective_name) dir_name = definitions.ROOT_DIR + '/storage/' + self.objective_name + '/' + now_str() + ' ' + str( len(self.original_domain)) + 'D REMBO_' + str(self.subspace_dim_size) mkdir_when_not_exist(abs_path=dir_name) self.save_report(report_file=dir_name + '/report.txt') self.save_evaluations(evaluations_file=dir_name + '/evaluation.csv') self.save_models(models_file=dir_name + '/model.csv')
def _save(self): mkdir_when_not_exist(abs_path=definitions.ROOT_DIR + '/storage/' + self.objective_name) dir_name = definitions.ROOT_DIR + '/storage/' + self.objective_name + '/' + now_str( ) + ' ' + str(self.dimensionality) + 'D ' + str(self.fill_in_strategy) mkdir_when_not_exist(abs_path=dir_name) self.save_report(report_file=dir_name + '/report.txt') self.save_evaluations(evaluations_file=dir_name + '/evaluation.csv') self.save_models(models_file=dir_name + '/model.csv')