datamod.results module¶
This module contains functions to handle the results database.
-
datamod.results.append_verification_to_database(file, verification_file)¶ Appends the results from the verification to the training database.
Parameters: - file (str) – Path and name of the training database file.
- verification_file (str) – Path and name of the verification database file.
-
datamod.results.header_names(dim_in, n_obj, n_const)¶ Determines the header names.
Parameters: - dim_in (int) – Number of input dimensions.
- n_const (int) – Number of constraints.
- n_obj (int) – Number of objectives.
Returns: Header names.
Return type: headers (list)
-
datamod.results.load_results(file)¶ Loads the data from the result database.
Parameters: file (str) – Path and name of the database file. Returns: Number of input dimensions. col_names (np.array): Name if stored variables. data (np.array): Samples. Return type: dim_in (int)
-
datamod.results.make_data_file(file, dim_in, n_obj, n_constr)¶ Initialize the results file header.
Parameters: - file (str) – Path and name of the database file.
- dim_in (int) – Number of input dimensions.
- n_const (int) – Number of constraints.
- n_obj (int) – Number of objectives.
-
datamod.results.make_response_files(folder, dim_in, n_obj, n_constr)¶ Sets up the training and verification database files.
Parameters: - folder (str) – Path to the current results data folder.
- dim_in (int) – Number of input dimensions.
- n_const (int) – Number of constraints.
- n_obj (int) – Number of objectives.
Returns: List of the database files paths.
Return type: files (list)
-
datamod.results.write_results(file, inputs, outputs)¶ Write the samples to the database.
Parameters: - inputs (np.array) – Input coordinates.
- outputs (np.array) – Output coordinates.