abacusai.model_monitor_version

Module Contents

Classes

ModelMonitorVersion

A version of a model monitor

class abacusai.model_monitor_version.ModelMonitorVersion(client, modelMonitorVersion=None, status=None, modelMonitorId=None, monitoringStartedAt=None, monitoringCompletedAt=None, trainingFeatureGroupVersion=None, predictionFeatureGroupVersion=None, error=None, pendingDeploymentIds=None, failedDeploymentIds=None)

Bases: abacusai.return_class.AbstractApiClass

A version of a model monitor

Parameters
  • client (ApiClient) – An authenticated API Client instance

  • modelMonitorVersion (str) – The unique identifier of a model monitor version.

  • status (str) – The current status of the model.

  • modelMonitorId (str) – A reference to the model monitor this version belongs to.

  • monitoringStartedAt (str) – The start time and date of the monitoring process.

  • monitoringCompletedAt (str) – The end time and date of the monitoring process.

  • trainingFeatureGroupVersion (unique string identifiers) – Feature group version IDs that this refresh pipeline run is monitoring.

  • predictionFeatureGroupVersion (unique string identifiers) – Feature group version IDs that this refresh pipeline run is monitoring.

  • error (str) – Relevant error if the status is FAILED.

  • pendingDeploymentIds (list) – List of deployment IDs where deployment is pending.

  • failedDeploymentIds (list) – List of failed deployment IDs.

__repr__(self)

Return repr(self).

to_dict(self)

Get a dict representation of the parameters in this class

Returns

The dict value representation of the class parameters

Return type

dict

refresh(self)

Calls describe and refreshes the current object’s fields

Returns

The current object

Return type

ModelMonitorVersion

describe(self)

Retrieves a full description of the specified model monitor version

Parameters

model_monitor_version (str) – The unique version ID of the model monitor version

Returns

A model monitor version.

Return type

ModelMonitorVersion

delete(self)

Deletes the specified model monitor version.

Parameters

model_monitor_version (str) – The ID of the model monitor version to delete.

get_model_monitoring_logs(self, stdout=False, stderr=False)

Returns monitoring logs for the model.

Parameters
  • stdout (bool) – Set True to get info logs

  • stderr (bool) – Set True to get error logs

Returns

A function logs.

Return type

FunctionLogs

get_drift_for_feature(self, feature_name)

Gets the feature drift associated with a single feature in an output feature group from a prediction.

Parameters

feature_name (str) – Name of the feature to view the distribution of.

get_outliers_for_feature(self, feature_name=None)

Gets a list of outliers measured by a single feature (or overall) in an output feature group from a prediction.

Parameters

feature_name (str) – Name of the feature to view the distribution of.

wait_for_monitor(self, timeout=1200)

A waiting call until model monitor version is ready.

Parameters

timeout (int, optional) – The waiting time given to the call to finish, if it doesn’t finish by the allocated time, the call is said to be timed out. Default value given is 1200 milliseconds.

get_status(self)

Gets the status of the model monitor version.

Returns

A string describing the status of the model monitor version, for e.g., pending, complete, etc.

Return type

str