mmgp.postprocessing

Functions

compute_metrics(→ dict)

Compute and print various metrics for a given ProblemDefinition instance and configuration settings.

export_predictions(→ plaid.containers.dataset.Dataset)

Module Contents

mmgp.postprocessing.compute_metrics(configuration: dict, problem: plaid.problem_definition.ProblemDefinition) dict[source]

Compute and print various metrics for a given ProblemDefinition instance and configuration settings.

Parameters:
  • configuration (dict) – A dictionary containing various parameters and settings for the metric computation. It should include the following keys: - ‘generated_data_folder’ (str): A string representing the folder where the predicted data is stored. - ‘regression’ (dict): A dictionary containing regression-related parameters with the following keys:

  • problem (ProblemDefinition) – An instance of the ProblemDefinition class containing problem-specific information, including output scalars and fields.

Caution

This function will load all the predicted data. Make sure it has been created and is located correctly.

mmgp.postprocessing.export_predictions(configuration: dict, problem: plaid.problem_definition.ProblemDefinition) plaid.containers.dataset.Dataset[source]