MetricResults

class MetricResults[source]

Bases: dataclasses_json.api.DataClassJsonMixin

Results from computing metrics.

Methods Summary

get_metric(name)

Get the given metric from the results.

to_flat_dict()

Get the results as a flattened dictionary.

Methods Documentation

get_metric(name)[source]

Get the given metric from the results.

Parameters

name (str) – The name of the metric

Return type

float

Returns

The value for the metric

to_flat_dict()[source]

Get the results as a flattened dictionary.

Return type

Mapping[str, Any]