pub struct GoogleCloudAiplatformV1FeatureStatsAnomaly {
pub score: Option<f64>,
pub stats_uri: Option<String>,
pub end_time: Option<DateTime<Utc>>,
pub anomaly_detection_threshold: Option<f64>,
pub distribution_deviation: Option<f64>,
pub anomaly_uri: Option<String>,
pub start_time: Option<DateTime<Utc>>,
}Expand description
Stats and Anomaly generated at specific timestamp for specific Feature. The start_time and end_time are used to define the time range of the dataset that current stats belongs to, e.g. prediction traffic is bucketed into prediction datasets by time window. If the Dataset is not defined by time window, start_time = end_time. Timestamp of the stats and anomalies always refers to end_time. Raw stats and anomalies are stored in stats_uri or anomaly_uri in the tensorflow defined protos. Field data_stats contains almost identical information with the raw stats in Vertex AI defined proto, for UI to display.
This type is not used in any activity, and only used as part of another schema.
Fields§
§score: Option<f64>Feature importance score, only populated when cross-feature monitoring is enabled. For now only used to represent feature attribution score within range [0, 1] for ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW and ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT.
stats_uri: Option<String>Path of the stats file for current feature values in Cloud Storage bucket. Format: gs:////stats. Example: gs://monitoring_bucket/feature_name/stats. Stats are stored as binary format with Protobuf message tensorflow.metadata.v0.FeatureNameStatistics.
end_time: Option<DateTime<Utc>>The end timestamp of window where stats were generated. For objectives where time window doesn’t make sense (e.g. Featurestore Snapshot Monitoring), end_time indicates the timestamp of the data used to generate stats (e.g. timestamp we take snapshots for feature values).
anomaly_detection_threshold: Option<f64>This is the threshold used when detecting anomalies. The threshold can be changed by user, so this one might be different from ThresholdConfig.value.
distribution_deviation: Option<f64>Deviation from the current stats to baseline stats. 1. For categorical feature, the distribution distance is calculated by L-inifinity norm. 2. For numerical feature, the distribution distance is calculated by Jensen–Shannon divergence.
anomaly_uri: Option<String>Path of the anomaly file for current feature values in Cloud Storage bucket. Format: gs:////anomalies. Example: gs://monitoring_bucket/feature_name/anomalies. Stats are stored as binary format with Protobuf message Anoamlies are stored as binary format with Protobuf message [tensorflow.metadata.v0.AnomalyInfo] (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto).
start_time: Option<DateTime<Utc>>The start timestamp of window where stats were generated. For objectives where time window doesn’t make sense (e.g. Featurestore Snapshot Monitoring), start_time is only used to indicate the monitoring intervals, so it always equals to (end_time - monitoring_interval).
Trait Implementations§
Source§impl Clone for GoogleCloudAiplatformV1FeatureStatsAnomaly
impl Clone for GoogleCloudAiplatformV1FeatureStatsAnomaly
Source§fn clone(&self) -> GoogleCloudAiplatformV1FeatureStatsAnomaly
fn clone(&self) -> GoogleCloudAiplatformV1FeatureStatsAnomaly
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudAiplatformV1FeatureStatsAnomaly
impl Default for GoogleCloudAiplatformV1FeatureStatsAnomaly
Source§fn default() -> GoogleCloudAiplatformV1FeatureStatsAnomaly
fn default() -> GoogleCloudAiplatformV1FeatureStatsAnomaly
Source§impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1FeatureStatsAnomaly
impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1FeatureStatsAnomaly
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>,
impl Part for GoogleCloudAiplatformV1FeatureStatsAnomaly
Auto Trait Implementations§
impl Freeze for GoogleCloudAiplatformV1FeatureStatsAnomaly
impl RefUnwindSafe for GoogleCloudAiplatformV1FeatureStatsAnomaly
impl Send for GoogleCloudAiplatformV1FeatureStatsAnomaly
impl Sync for GoogleCloudAiplatformV1FeatureStatsAnomaly
impl Unpin for GoogleCloudAiplatformV1FeatureStatsAnomaly
impl UnwindSafe for GoogleCloudAiplatformV1FeatureStatsAnomaly
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more