public final class FeatureStatsAnomaly extends com.google.protobuf.GeneratedMessageV3 implements FeatureStatsAnomalyOrBuilder
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.Protobuf type
google.cloud.aiplatform.v1.FeatureStatsAnomaly| Modifier and Type | Class and Description |
|---|---|
static class |
FeatureStatsAnomaly.Builder
Stats and Anomaly generated at specific timestamp for specific Feature.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ANOMALY_DETECTION_THRESHOLD_FIELD_NUMBER |
static int |
ANOMALY_URI_FIELD_NUMBER |
static int |
DISTRIBUTION_DEVIATION_FIELD_NUMBER |
static int |
END_TIME_FIELD_NUMBER |
static int |
SCORE_FIELD_NUMBER |
static int |
START_TIME_FIELD_NUMBER |
static int |
STATS_URI_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getAnomalyDetectionThreshold()
This is the threshold used when detecting anomalies.
|
String |
getAnomalyUri()
Path of the anomaly file for current feature values in Cloud Storage
bucket.
|
com.google.protobuf.ByteString |
getAnomalyUriBytes()
Path of the anomaly file for current feature values in Cloud Storage
bucket.
|
static FeatureStatsAnomaly |
getDefaultInstance() |
FeatureStatsAnomaly |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
double |
getDistributionDeviation()
Deviation from the current stats to baseline stats.
|
com.google.protobuf.Timestamp |
getEndTime()
The end timestamp of window where stats were generated.
|
com.google.protobuf.TimestampOrBuilder |
getEndTimeOrBuilder()
The end timestamp of window where stats were generated.
|
com.google.protobuf.Parser<FeatureStatsAnomaly> |
getParserForType() |
double |
getScore()
Feature importance score, only populated when cross-feature monitoring is
enabled.
|
int |
getSerializedSize() |
com.google.protobuf.Timestamp |
getStartTime()
The start timestamp of window where stats were generated.
|
com.google.protobuf.TimestampOrBuilder |
getStartTimeOrBuilder()
The start timestamp of window where stats were generated.
|
String |
getStatsUri()
Path of the stats file for current feature values in Cloud Storage bucket.
|
com.google.protobuf.ByteString |
getStatsUriBytes()
Path of the stats file for current feature values in Cloud Storage bucket.
|
boolean |
hasEndTime()
The end timestamp of window where stats were generated.
|
int |
hashCode() |
boolean |
hasStartTime()
The start timestamp of window where stats were generated.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static FeatureStatsAnomaly.Builder |
newBuilder() |
static FeatureStatsAnomaly.Builder |
newBuilder(FeatureStatsAnomaly prototype) |
FeatureStatsAnomaly.Builder |
newBuilderForType() |
protected FeatureStatsAnomaly.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static FeatureStatsAnomaly |
parseDelimitedFrom(InputStream input) |
static FeatureStatsAnomaly |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FeatureStatsAnomaly |
parseFrom(byte[] data) |
static FeatureStatsAnomaly |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FeatureStatsAnomaly |
parseFrom(ByteBuffer data) |
static FeatureStatsAnomaly |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FeatureStatsAnomaly |
parseFrom(com.google.protobuf.ByteString data) |
static FeatureStatsAnomaly |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FeatureStatsAnomaly |
parseFrom(com.google.protobuf.CodedInputStream input) |
static FeatureStatsAnomaly |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FeatureStatsAnomaly |
parseFrom(InputStream input) |
static FeatureStatsAnomaly |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<FeatureStatsAnomaly> |
parser() |
FeatureStatsAnomaly.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SCORE_FIELD_NUMBER
public static final int STATS_URI_FIELD_NUMBER
public static final int ANOMALY_URI_FIELD_NUMBER
public static final int DISTRIBUTION_DEVIATION_FIELD_NUMBER
public static final int ANOMALY_DETECTION_THRESHOLD_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public double getScore()
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][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW] and [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT].
double score = 1;getScore in interface FeatureStatsAnomalyOrBuilderpublic String getStatsUri()
Path of the stats file for current feature values in Cloud Storage bucket. Format: gs://<bucket_name>/<object_name>/stats. Example: gs://monitoring_bucket/feature_name/stats. Stats are stored as binary format with Protobuf message [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto).
string stats_uri = 3;getStatsUri in interface FeatureStatsAnomalyOrBuilderpublic com.google.protobuf.ByteString getStatsUriBytes()
Path of the stats file for current feature values in Cloud Storage bucket. Format: gs://<bucket_name>/<object_name>/stats. Example: gs://monitoring_bucket/feature_name/stats. Stats are stored as binary format with Protobuf message [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto).
string stats_uri = 3;getStatsUriBytes in interface FeatureStatsAnomalyOrBuilderpublic String getAnomalyUri()
Path of the anomaly file for current feature values in Cloud Storage bucket. Format: gs://<bucket_name>/<object_name>/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).
string anomaly_uri = 4;getAnomalyUri in interface FeatureStatsAnomalyOrBuilderpublic com.google.protobuf.ByteString getAnomalyUriBytes()
Path of the anomaly file for current feature values in Cloud Storage bucket. Format: gs://<bucket_name>/<object_name>/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).
string anomaly_uri = 4;getAnomalyUriBytes in interface FeatureStatsAnomalyOrBuilderpublic double getDistributionDeviation()
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.
double distribution_deviation = 5;getDistributionDeviation in interface FeatureStatsAnomalyOrBuilderpublic double getAnomalyDetectionThreshold()
This is the threshold used when detecting anomalies. The threshold can be changed by user, so this one might be different from [ThresholdConfig.value][google.cloud.aiplatform.v1.ThresholdConfig.value].
double anomaly_detection_threshold = 9;getAnomalyDetectionThreshold in interface FeatureStatsAnomalyOrBuilderpublic boolean hasStartTime()
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).
.google.protobuf.Timestamp start_time = 7;hasStartTime in interface FeatureStatsAnomalyOrBuilderpublic com.google.protobuf.Timestamp getStartTime()
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).
.google.protobuf.Timestamp start_time = 7;getStartTime in interface FeatureStatsAnomalyOrBuilderpublic com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
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).
.google.protobuf.Timestamp start_time = 7;getStartTimeOrBuilder in interface FeatureStatsAnomalyOrBuilderpublic boolean hasEndTime()
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).
.google.protobuf.Timestamp end_time = 8;hasEndTime in interface FeatureStatsAnomalyOrBuilderpublic com.google.protobuf.Timestamp getEndTime()
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).
.google.protobuf.Timestamp end_time = 8;getEndTime in interface FeatureStatsAnomalyOrBuilderpublic com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
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).
.google.protobuf.Timestamp end_time = 8;getEndTimeOrBuilder in interface FeatureStatsAnomalyOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static FeatureStatsAnomaly parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FeatureStatsAnomaly parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FeatureStatsAnomaly parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FeatureStatsAnomaly parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FeatureStatsAnomaly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FeatureStatsAnomaly parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FeatureStatsAnomaly parseFrom(InputStream input) throws IOException
IOExceptionpublic static FeatureStatsAnomaly parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FeatureStatsAnomaly parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static FeatureStatsAnomaly parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FeatureStatsAnomaly parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static FeatureStatsAnomaly parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic FeatureStatsAnomaly.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static FeatureStatsAnomaly.Builder newBuilder()
public static FeatureStatsAnomaly.Builder newBuilder(FeatureStatsAnomaly prototype)
public FeatureStatsAnomaly.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected FeatureStatsAnomaly.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static FeatureStatsAnomaly getDefaultInstance()
public static com.google.protobuf.Parser<FeatureStatsAnomaly> parser()
public com.google.protobuf.Parser<FeatureStatsAnomaly> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public FeatureStatsAnomaly getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.