MetricsRecord#

class MetricsRecord(metrics_dict: Dict[str, int | float | List[int] | List[float]] | None = None, keep_input: bool = True)[source]#

Bases: TypedDict[str, Union[int, float, List[int], List[float]]]

Metrics record.

Methods

clear()

Remove all items from R.

count_bytes()

Return number of Bytes stored in this object.

get(k[,d])

d defaults to None.

items()

keys()

pop(k[,d])

If key is not found, d is returned if given, otherwise KeyError is raised.

update([E, ]**F)

Update R from dict/iterable E and F.

values()

clear() None.#

Remove all items from R.

count_bytes() int[source]#

Return number of Bytes stored in this object.

get(k[, d]) R[k] if k in R, else d.#

d defaults to None.

items() a set-like object providing a view on R's items.#
keys() a set-like object providing a view on R's keys.#
pop(k[, d]) v, remove specified key and return the corresponding value.#

If key is not found, d is returned if given, otherwise KeyError is raised.

update([E, ]**F) None.#

Update R from dict/iterable E and F.

values() an object providing a view on R's values.#