(self, it, **kwargs)
Saves meta information of an iteration in a Json file.
Saves meta information of an iteration in a Json file.
Saves meta information of an iteration in a Json file .
def save_json(self, it, **kwargs):
        """
        Saves meta information of an iteration in a Json file.
        """
        base_solver_data =self.get_json_data(it)
        base_model_data = self.model.get_json_data()
        base_task_data = self.task.get_json_data()
        base_acquisition_data = self.acquisition_func.get_json_data()

        data = {'Solver': base_solver_data,
                'Model': base_model_data,
                'Task': base_task_data,
                'Acquisiton': base_acquisition_data
                }

        json.dump(data, self.output_file_json)
        self.output_file_json.write('\n')
def save_json ( self , it , * * kwargs ) : base_solver_data = self . get_json_data ( it ) base_model_data = self . model . get_json_data ( ) base_task_data = self . task . get_json_data ( ) base_acquisition_data = self . acquisition_func . get_json_data ( ) data = { 'Solver' : base_solver_data , 'Model' : base_model_data , 'Task' : base_task_data , 'Acquisiton' : base_acquisition_data } json . dump ( data , self . output_file_json ) self . output_file_json . write ( '\n' )