public static final class ModelMonitoringObjectiveSpec.DataDriftSpec extends GeneratedMessageV3 implements ModelMonitoringObjectiveSpec.DataDriftSpecOrBuilder
Data drift monitoring spec.
Data drift measures the distribution distance between the current dataset
and a baseline dataset. A typical use case is to detect data drift between
the recent production serving dataset and the training dataset, or to
compare the recent production dataset with a dataset from a previous
period.
Protobuf type
google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveSpec.DataDriftSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int CATEGORICAL_METRIC_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int DEFAULT_CATEGORICAL_ALERT_CONDITION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int DEFAULT_NUMERIC_ALERT_CONDITION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int FEATURES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int FEATURE_ALERT_CONDITIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int NUMERIC_METRIC_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static ModelMonitoringObjectiveSpec.DataDriftSpec getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static ModelMonitoringObjectiveSpec.DataDriftSpec.Builder newBuilder()
public static ModelMonitoringObjectiveSpec.DataDriftSpec.Builder newBuilder(ModelMonitoringObjectiveSpec.DataDriftSpec prototype)
public static ModelMonitoringObjectiveSpec.DataDriftSpec parseDelimitedFrom(InputStream input)
public static ModelMonitoringObjectiveSpec.DataDriftSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ModelMonitoringObjectiveSpec.DataDriftSpec parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static ModelMonitoringObjectiveSpec.DataDriftSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ModelMonitoringObjectiveSpec.DataDriftSpec parseFrom(ByteString data)
public static ModelMonitoringObjectiveSpec.DataDriftSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ModelMonitoringObjectiveSpec.DataDriftSpec parseFrom(CodedInputStream input)
public static ModelMonitoringObjectiveSpec.DataDriftSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ModelMonitoringObjectiveSpec.DataDriftSpec parseFrom(InputStream input)
public static ModelMonitoringObjectiveSpec.DataDriftSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ModelMonitoringObjectiveSpec.DataDriftSpec parseFrom(ByteBuffer data)
public static ModelMonitoringObjectiveSpec.DataDriftSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<ModelMonitoringObjectiveSpec.DataDriftSpec> parser()
Methods
public boolean containsFeatureAlertConditions(String key)
Per feature alert condition will override default alert condition.
map<string, .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition> feature_alert_conditions = 6;
Parameter |
Name |
Description |
key |
String
|
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public String getCategoricalMetricType()
Supported metrics type:
- l_infinity
- jensen_shannon_divergence
string categorical_metric_type = 2;
Returns |
Type |
Description |
String |
The categoricalMetricType.
|
public ByteString getCategoricalMetricTypeBytes()
Supported metrics type:
- l_infinity
- jensen_shannon_divergence
string categorical_metric_type = 2;
Returns |
Type |
Description |
ByteString |
The bytes for categoricalMetricType.
|
public ModelMonitoringAlertCondition getDefaultCategoricalAlertCondition()
Default alert condition for all the categorical features.
.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition default_categorical_alert_condition = 4;
public ModelMonitoringAlertConditionOrBuilder getDefaultCategoricalAlertConditionOrBuilder()
Default alert condition for all the categorical features.
.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition default_categorical_alert_condition = 4;
public ModelMonitoringObjectiveSpec.DataDriftSpec getDefaultInstanceForType()
public ModelMonitoringAlertCondition getDefaultNumericAlertCondition()
Default alert condition for all the numeric features.
.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition default_numeric_alert_condition = 5;
public ModelMonitoringAlertConditionOrBuilder getDefaultNumericAlertConditionOrBuilder()
Default alert condition for all the numeric features.
.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition default_numeric_alert_condition = 5;
public Map<String,ModelMonitoringAlertCondition> getFeatureAlertConditions()
public int getFeatureAlertConditionsCount()
Per feature alert condition will override default alert condition.
map<string, .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition> feature_alert_conditions = 6;
Returns |
Type |
Description |
int |
|
public Map<String,ModelMonitoringAlertCondition> getFeatureAlertConditionsMap()
Per feature alert condition will override default alert condition.
map<string, .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition> feature_alert_conditions = 6;
public ModelMonitoringAlertCondition getFeatureAlertConditionsOrDefault(String key, ModelMonitoringAlertCondition defaultValue)
Per feature alert condition will override default alert condition.
map<string, .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition> feature_alert_conditions = 6;
public ModelMonitoringAlertCondition getFeatureAlertConditionsOrThrow(String key)
Per feature alert condition will override default alert condition.
map<string, .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition> feature_alert_conditions = 6;
Parameter |
Name |
Description |
key |
String
|
public String getFeatures(int index)
Feature names / Prediction output names interested in monitoring.
These should be a subset of the input feature names or prediction output
names specified in the monitoring schema.
If the field is not specified all features / prediction outputs outlied
in the monitoring schema will be used.
repeated string features = 1;
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The features at the given index.
|
public ByteString getFeaturesBytes(int index)
Feature names / Prediction output names interested in monitoring.
These should be a subset of the input feature names or prediction output
names specified in the monitoring schema.
If the field is not specified all features / prediction outputs outlied
in the monitoring schema will be used.
repeated string features = 1;
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the features at the given index.
|
public int getFeaturesCount()
Feature names / Prediction output names interested in monitoring.
These should be a subset of the input feature names or prediction output
names specified in the monitoring schema.
If the field is not specified all features / prediction outputs outlied
in the monitoring schema will be used.
repeated string features = 1;
Returns |
Type |
Description |
int |
The count of features.
|
public ProtocolStringList getFeaturesList()
Feature names / Prediction output names interested in monitoring.
These should be a subset of the input feature names or prediction output
names specified in the monitoring schema.
If the field is not specified all features / prediction outputs outlied
in the monitoring schema will be used.
repeated string features = 1;
public String getNumericMetricType()
Supported metrics type:
- jensen_shannon_divergence
string numeric_metric_type = 3;
Returns |
Type |
Description |
String |
The numericMetricType.
|
public ByteString getNumericMetricTypeBytes()
Supported metrics type:
- jensen_shannon_divergence
string numeric_metric_type = 3;
Returns |
Type |
Description |
ByteString |
The bytes for numericMetricType.
|
public Parser<ModelMonitoringObjectiveSpec.DataDriftSpec> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public boolean hasDefaultCategoricalAlertCondition()
Default alert condition for all the categorical features.
.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition default_categorical_alert_condition = 4;
Returns |
Type |
Description |
boolean |
Whether the defaultCategoricalAlertCondition field is set.
|
public boolean hasDefaultNumericAlertCondition()
Default alert condition for all the numeric features.
.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition default_numeric_alert_condition = 5;
Returns |
Type |
Description |
boolean |
Whether the defaultNumericAlertCondition field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
public final boolean isInitialized()
Overrides
public ModelMonitoringObjectiveSpec.DataDriftSpec.Builder newBuilderForType()
protected ModelMonitoringObjectiveSpec.DataDriftSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public ModelMonitoringObjectiveSpec.DataDriftSpec.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides