openMWR.evaluation#

Named evaluation recipes, common-sample comparisons and portable results.

Functions

evaluate(recipe, *[, retrievals, device])

Evaluate a named comparison without training, downloading or saving results.

render_report(analysis)

Build the complete HTML in memory, including its figures.

save_evaluation(analysis[, output_file])

Save one standalone HTML report, preserving existing files.

Classes

Analysis(metadata, evaluations)

Evaluation(key, mode, title, error_types, ...)

EvaluationRecipe(project_dir, site, name, values)

Editable comparison settings.

class openMWR.evaluation.EvaluationRecipe(project_dir, site, name, values)[source]#

Bases: object

Editable comparison settings. Both the command and Python use this object.

project_dir#
site#
name#
values#
classmethod load(project_dir, site, name)[source]#
validate()[source]#
class openMWR.evaluation.Evaluation(key: str, mode: str, title: str, error_types: tuple[str, ...], samples: dict, metrics: dict[str, xarray.core.dataset.Dataset], note: str = '')[source]#

Bases: object

key#
mode#
title#
error_types#
samples#
metrics#
note = ''#
class openMWR.evaluation.Analysis(metadata: dict, evaluations: list[openMWR.evaluation.Evaluation])[source]#

Bases: object

metadata#
evaluations#
openMWR.evaluation.evaluate(recipe, *, retrievals=None, device='auto')[source]#

Evaluate a named comparison without training, downloading or saving results.

openMWR.evaluation.save_evaluation(analysis, output_file=None)[source]#

Save one standalone HTML report, preserving existing files.

Numerical results remain available on analysis.evaluations for custom Python work. No numerical export or report subdirectory is created.

openMWR.evaluation.render_report(analysis)[source]#

Build the complete HTML in memory, including its figures.

References