MetricResults
- class MetricResults(data)[source]
Bases:
Generic
[MetricKeyType
]Results from computing metrics.
Initialize the result wrapper.
Methods Summary
get_metric
(name)Get the given metric from the results.
Parse the metric key from a (un-normalized) string.
Convert a key to a normalized key.
Convert a key to a named tuple.
to_df
()Output the metrics as a pandas dataframe.
to_dict
()Extract a (potentially nested) JSON-compatible dictionary.
Get the results as a flattened dictionary.
Methods Documentation
- abstract classmethod key_from_string(s)[source]
Parse the metric key from a (un-normalized) string.
- classmethod string_or_key_to_key(s)[source]
Convert a key to a named tuple.
- Return type:
~MetricKeyType
- Parameters:
s (str | MetricKeyType | None) –