#[non_exhaustive]pub struct ModelMonitoringObjectiveConfig {
pub training_dataset: Option<TrainingDataset>,
pub training_prediction_skew_detection_config: Option<TrainingPredictionSkewDetectionConfig>,
pub prediction_drift_detection_config: Option<PredictionDriftDetectionConfig>,
pub explanation_config: Option<ExplanationConfig>,
/* private fields */
}job-service only.Expand description
The objective configuration for model monitoring, including the information needed to detect anomalies for one particular model.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.training_dataset: Option<TrainingDataset>Training dataset for models. This field has to be set only if TrainingPredictionSkewDetectionConfig is specified.
training_prediction_skew_detection_config: Option<TrainingPredictionSkewDetectionConfig>The config for skew between training data and prediction data.
prediction_drift_detection_config: Option<PredictionDriftDetectionConfig>The config for drift of prediction data.
explanation_config: Option<ExplanationConfig>The config for integrating with Vertex Explainable AI.
Implementations§
Source§impl ModelMonitoringObjectiveConfig
impl ModelMonitoringObjectiveConfig
Sourcepub fn set_training_dataset<T>(self, v: T) -> Selfwhere
T: Into<TrainingDataset>,
pub fn set_training_dataset<T>(self, v: T) -> Selfwhere
T: Into<TrainingDataset>,
Sets the value of training_dataset.
§Example
use google_cloud_aiplatform_v1::model::model_monitoring_objective_config::TrainingDataset;
let x = ModelMonitoringObjectiveConfig::new().set_training_dataset(TrainingDataset::default()/* use setters */);Sourcepub fn set_or_clear_training_dataset<T>(self, v: Option<T>) -> Selfwhere
T: Into<TrainingDataset>,
pub fn set_or_clear_training_dataset<T>(self, v: Option<T>) -> Selfwhere
T: Into<TrainingDataset>,
Sets or clears the value of training_dataset.
§Example
use google_cloud_aiplatform_v1::model::model_monitoring_objective_config::TrainingDataset;
let x = ModelMonitoringObjectiveConfig::new().set_or_clear_training_dataset(Some(TrainingDataset::default()/* use setters */));
let x = ModelMonitoringObjectiveConfig::new().set_or_clear_training_dataset(None::<TrainingDataset>);Sourcepub fn set_training_prediction_skew_detection_config<T>(self, v: T) -> Selfwhere
T: Into<TrainingPredictionSkewDetectionConfig>,
pub fn set_training_prediction_skew_detection_config<T>(self, v: T) -> Selfwhere
T: Into<TrainingPredictionSkewDetectionConfig>,
Sets the value of training_prediction_skew_detection_config.
§Example
use google_cloud_aiplatform_v1::model::model_monitoring_objective_config::TrainingPredictionSkewDetectionConfig;
let x = ModelMonitoringObjectiveConfig::new().set_training_prediction_skew_detection_config(TrainingPredictionSkewDetectionConfig::default()/* use setters */);Sourcepub fn set_or_clear_training_prediction_skew_detection_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<TrainingPredictionSkewDetectionConfig>,
pub fn set_or_clear_training_prediction_skew_detection_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<TrainingPredictionSkewDetectionConfig>,
Sets or clears the value of training_prediction_skew_detection_config.
§Example
use google_cloud_aiplatform_v1::model::model_monitoring_objective_config::TrainingPredictionSkewDetectionConfig;
let x = ModelMonitoringObjectiveConfig::new().set_or_clear_training_prediction_skew_detection_config(Some(TrainingPredictionSkewDetectionConfig::default()/* use setters */));
let x = ModelMonitoringObjectiveConfig::new().set_or_clear_training_prediction_skew_detection_config(None::<TrainingPredictionSkewDetectionConfig>);Sourcepub fn set_prediction_drift_detection_config<T>(self, v: T) -> Selfwhere
T: Into<PredictionDriftDetectionConfig>,
pub fn set_prediction_drift_detection_config<T>(self, v: T) -> Selfwhere
T: Into<PredictionDriftDetectionConfig>,
Sets the value of prediction_drift_detection_config.
§Example
use google_cloud_aiplatform_v1::model::model_monitoring_objective_config::PredictionDriftDetectionConfig;
let x = ModelMonitoringObjectiveConfig::new().set_prediction_drift_detection_config(PredictionDriftDetectionConfig::default()/* use setters */);Sourcepub fn set_or_clear_prediction_drift_detection_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<PredictionDriftDetectionConfig>,
pub fn set_or_clear_prediction_drift_detection_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<PredictionDriftDetectionConfig>,
Sets or clears the value of prediction_drift_detection_config.
§Example
use google_cloud_aiplatform_v1::model::model_monitoring_objective_config::PredictionDriftDetectionConfig;
let x = ModelMonitoringObjectiveConfig::new().set_or_clear_prediction_drift_detection_config(Some(PredictionDriftDetectionConfig::default()/* use setters */));
let x = ModelMonitoringObjectiveConfig::new().set_or_clear_prediction_drift_detection_config(None::<PredictionDriftDetectionConfig>);Sourcepub fn set_explanation_config<T>(self, v: T) -> Selfwhere
T: Into<ExplanationConfig>,
pub fn set_explanation_config<T>(self, v: T) -> Selfwhere
T: Into<ExplanationConfig>,
Sets the value of explanation_config.
§Example
use google_cloud_aiplatform_v1::model::model_monitoring_objective_config::ExplanationConfig;
let x = ModelMonitoringObjectiveConfig::new().set_explanation_config(ExplanationConfig::default()/* use setters */);Sourcepub fn set_or_clear_explanation_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExplanationConfig>,
pub fn set_or_clear_explanation_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExplanationConfig>,
Sets or clears the value of explanation_config.
§Example
use google_cloud_aiplatform_v1::model::model_monitoring_objective_config::ExplanationConfig;
let x = ModelMonitoringObjectiveConfig::new().set_or_clear_explanation_config(Some(ExplanationConfig::default()/* use setters */));
let x = ModelMonitoringObjectiveConfig::new().set_or_clear_explanation_config(None::<ExplanationConfig>);Trait Implementations§
Source§impl Clone for ModelMonitoringObjectiveConfig
impl Clone for ModelMonitoringObjectiveConfig
Source§fn clone(&self) -> ModelMonitoringObjectiveConfig
fn clone(&self) -> ModelMonitoringObjectiveConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ModelMonitoringObjectiveConfig
impl Default for ModelMonitoringObjectiveConfig
Source§fn default() -> ModelMonitoringObjectiveConfig
fn default() -> ModelMonitoringObjectiveConfig
impl StructuralPartialEq for ModelMonitoringObjectiveConfig
Auto Trait Implementations§
impl Freeze for ModelMonitoringObjectiveConfig
impl RefUnwindSafe for ModelMonitoringObjectiveConfig
impl Send for ModelMonitoringObjectiveConfig
impl Sync for ModelMonitoringObjectiveConfig
impl Unpin for ModelMonitoringObjectiveConfig
impl UnsafeUnpin for ModelMonitoringObjectiveConfig
impl UnwindSafe for ModelMonitoringObjectiveConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request