Class ObjectiveSpec (1.91.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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.