#[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 */
}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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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
pub fn new() -> Self
Sourcepub fn set_training_dataset<T: Into<Option<TrainingDataset>>>(
self,
v: T,
) -> Self
pub fn set_training_dataset<T: Into<Option<TrainingDataset>>>( self, v: T, ) -> Self
Sets the value of training_dataset.
Sourcepub fn set_training_prediction_skew_detection_config<T: Into<Option<TrainingPredictionSkewDetectionConfig>>>(
self,
v: T,
) -> Self
pub fn set_training_prediction_skew_detection_config<T: Into<Option<TrainingPredictionSkewDetectionConfig>>>( self, v: T, ) -> Self
Sets the value of training_prediction_skew_detection_config.
Sourcepub fn set_prediction_drift_detection_config<T: Into<Option<PredictionDriftDetectionConfig>>>(
self,
v: T,
) -> Self
pub fn set_prediction_drift_detection_config<T: Into<Option<PredictionDriftDetectionConfig>>>( self, v: T, ) -> Self
Sets the value of prediction_drift_detection_config.
Sourcepub fn set_explanation_config<T: Into<Option<ExplanationConfig>>>(
self,
v: T,
) -> Self
pub fn set_explanation_config<T: Into<Option<ExplanationConfig>>>( self, v: T, ) -> Self
Sets the value of explanation_config.
Trait Implementations§
Source§impl Clone for ModelMonitoringObjectiveConfig
impl Clone for ModelMonitoringObjectiveConfig
Source§fn clone(&self) -> ModelMonitoringObjectiveConfig
fn clone(&self) -> ModelMonitoringObjectiveConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ModelMonitoringObjectiveConfig
impl Default for ModelMonitoringObjectiveConfig
Source§fn default() -> ModelMonitoringObjectiveConfig
fn default() -> ModelMonitoringObjectiveConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelMonitoringObjectiveConfig
impl<'de> Deserialize<'de> for ModelMonitoringObjectiveConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ModelMonitoringObjectiveConfig
impl PartialEq for ModelMonitoringObjectiveConfig
Source§fn eq(&self, other: &ModelMonitoringObjectiveConfig) -> bool
fn eq(&self, other: &ModelMonitoringObjectiveConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.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 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
Mutably borrows from an owned value. Read more