Class ObjectiveSpec (1.53.0)

ObjectiveSpec(
    baseline_dataset: vertexai.resources.preview.ml_monitoring.spec.objective.MonitoringInput,
    target_dataset: vertexai.resources.preview.ml_monitoring.spec.objective.MonitoringInput,
    tabular_objective: typing.Optional[
        vertexai.resources.preview.ml_monitoring.spec.objective.TabularObjective
    ] = None,
    explanation_spec: typing.Optional[
        google.cloud.aiplatform_v1beta1.types.explanation.ExplanationSpec
    ] = None,
)

Initializer for ObjectiveSpec.

Parameters

Name Description
baseline_dataset MonitoringInput

Required. Baseline datasets that are used by all the monitoring objectives. It could be the training dataset or production serving dataset from a previous period.

target_dataset MonitoringInput

Required. Target dataset for monitoring analysis, it's used by all the monitoring objectives.

tabular_objective TabularObjective

Optional. The tabular monitoring objective.

explanation_spec explanation.ExplanationSpec

Optional. The explanation spec. This spec is required when the objectives spec includes feature attribution objectives.