wf_psf.metrics.metrics_config_handler
MetricsConfigHandler.
A module containing the MetricsConfigHandler class, which is responsible for managing the parameters of the metrics configuration file and running the metrics evaluation of a trained PSF model
- Authors:
Jennifer Pollack <jennifer.pollack@cea.fr>
Classes
|
MetricsConfigHandler. |
- class wf_psf.metrics.metrics_config_handler.MetricsConfigHandler(metrics_conf, file_handler, training_conf=None)[source]
Bases:
ConfigHandlerMetricsConfigHandler.
A class to handle metrics configuation parameters.
- Parameters:
ids (tuple) – A tuple containing a string id for the Configuration Class
metrics_conf (str) – Path to the metrics configuration file
file_handler (object) – An instance of the FileIOHandler
training_conf (RecursiveNamespace object) – RecursiveNamespace object containing the training configuration parameters
- Attributes:
metrics_confGet Metrics Conf.
plotting_confGet Plotting Conf.
training_confReturns the loaded training configuration.
Methods
call_plot_config_handler_run(model_metrics)Make Metrics Plots.
run()Run.
- call_plot_config_handler_run(model_metrics)[source]
Make Metrics Plots.
A function to call the PlottingConfigHandler run command to generate metrics plots.
- Parameters:
model_metrics (dict) – A dictionary storing the metrics output generated during evaluation of the trained PSF model.
- property metrics_conf
Get Metrics Conf.
A function to return the metrics configuration file name.
- Returns:
An instance of the metrics configuration file.
- Return type:
- property plotting_conf
Get Plotting Conf.
A function to return the plotting configuration file name.
- Returns:
Name of plotting configuration file
- Return type:
- property training_conf
Returns the loaded training configuration.