connect.evidence.evidence.MetricEvidence

class connect.evidence.evidence.MetricEvidence(type, value, confidence_interval=None, confidence_level=None, additional_labels=None, **metadata)

Bases: connect.evidence.evidence.Evidence

Evidence for Metric:value result type

Parameters
  • type (string) – short identifier for metric.

  • value (float) – metric value

  • confidence_interval ([float, float]) – [lower, upper] confidence interval

  • confidence_level (int) – Level of confidence for the confidence interval (e.g., 95%)

  • metadata (dict, optional) – Arbitrary keyword arguments to append to metric as metadata. These will be displayed in the governance app

__init__(type, value, confidence_interval=None, confidence_level=None, additional_labels=None, **metadata)

Methods

__init__(type, value[, confidence_interval, ...])

struct()

Structure of evidence

Attributes

base_label

data

Adds data reflecting additional structure of child classes

label

Adds evidence type specific label

struct()

Structure of evidence

property data

Adds data reflecting additional structure of child classes

property label

Adds evidence type specific label