wallaroo.assays_v2.baseline


This module features the Baseline class that configures baselines.

class StaticBaseline(wallaroo.wallaroo_ml_ops_api_client.models.baseline_type_1.BaselineType1):

A Baseline from the server will always come in the form of a set of Summaries.

def summarize(self):
Inherited Members
wallaroo.wallaroo_ml_ops_api_client.models.baseline_type_1.BaselineType1
BaselineType1
static
additional_properties
to_dict
from_dict
additional_keys
class SummaryBaseline(wallaroo.wallaroo_ml_ops_api_client.models.baseline_type_0.BaselineType0):

This class represents a summary baseline. A Baseline from the MLOps API will always come in the form of a set of Summaries.

Create a SummaryBaseline from a V1Summarizer. A v1 summary is guaranteed to only contain one observed path.

Parameters
  • baseline: The v1 baseline.
  • summarizer: The v1 summarizer.
  • iopath: The iopath.
Returns

The SummaryBaseline object.

Inherited Members
wallaroo.wallaroo_ml_ops_api_client.models.baseline_type_0.BaselineType0
BaselineType0
summary
additional_properties
to_dict
from_dict
additional_keys
def summarize_baseline_v2_from_v1_config( v1_config: wallaroo.assay_config.AssayConfig) -> Tuple[wallaroo.wallaroo_ml_ops_api_client.models.field_tagged_summaries.FieldTaggedSummaries, str]:

This function is used to summarize a baseline from a v1 config. It returns a SeriesSummary and the iopath of the baseline. Baseline summarization is called by AssayBuilder.interactive_run() (i.e. assays v1) after the AssayConfig object is already built.

Parameters
  • v1_config: The v1 config.
Returns

The SeriesSummary and the iopath of the baseline.

def summarize_baseline_v2_from_v1_args( client: wallaroo.client.Client, window: wallaroo.assay_config.WindowConfig, summarizer: wallaroo.assay_config.SummarizerConfig, start: datetime.datetime, end: datetime.datetime, alert_threshold: float, warning_threshold: float, pipeline_id: str, pipeline_name: str, workspace_id: str, workspace_name: str) -> Tuple[wallaroo.wallaroo_ml_ops_api_client.models.field_tagged_summaries.FieldTaggedSummaries, str]:

This function is used to summarize a baseline from a v1 config. It returns a SeriesSummary and the iopath of the baseline. Baseline summarization is called by AssayBuilder.build() (i.e. assays v1) before building the AssayConfig object.

Parameters
  • client: The client.
  • window: The window.
  • summarizer: The summarizer.
  • start: The start.
  • end: The end.
  • alert_threshold: The alert threshold.
  • warning_threshold: The warning threshold.
  • pipeline_id: The pipeline id.
  • pipeline_name: The pipeline name.
  • workspace_id: The workspace id.
  • workspace_name: The workspace name.
Returns

The SeriesSummary and the iopath of the baseline.