umpyre.storage.formats#

JSON and CSV serialization for metrics.

Functions

deserialize_metrics(file_path[, format])

Deserialize metrics from file.

serialize_metrics(data, output_path[, format])

Serialize metrics to file.

umpyre.storage.formats.deserialize_metrics(file_path, format='json')[source]#

Deserialize metrics from file.

Parameters:
  • file_path (Path) – Path to input file

  • format (str) – Format (‘json’ or ‘csv’)

Return type:

dict

Returns:

Metric dictionary

umpyre.storage.formats.serialize_metrics(data, output_path, format='json')[source]#

Serialize metrics to file.

Parameters:
  • data (dict) – Metric dictionary

  • output_path (Path) – Path to output file

  • format (str) – Format (‘json’ or ‘csv’)