MetricResults

class MetricResults(data)[source]

Bases: object

Results from computing metrics.

Initialize the result wrapper.

Methods Summary

get_metric(name)

Get the given metric from the results.

to_dict()

Get the results as a dictionary.

to_flat_dict()

Get the results as a flattened dictionary.

Methods Documentation

Parameters

data (Mapping) –

abstract 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_dict()[source]

Get the results as a dictionary.

to_flat_dict()[source]

Get the results as a flattened dictionary.

Return type

Mapping[str, Any]