public final class ModelEvaluation extends GeneratedMessageV3 implements ModelEvaluationOrBuilder
A collection of metrics calculated by comparing Model's predictions on all of
the test data against annotations from the test data.
Protobuf type google.cloud.aiplatform.v1beta1.ModelEvaluation
Fields
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
public static final int EXPLANATION_SPECS_FIELD_NUMBER
Field Value
public static final int METRICS_FIELD_NUMBER
Field Value
public static final int METRICS_SCHEMA_URI_FIELD_NUMBER
Field Value
public static final int MODEL_EXPLANATION_FIELD_NUMBER
Field Value
public static final int NAME_FIELD_NUMBER
Field Value
public static final int SLICE_DIMENSIONS_FIELD_NUMBER
Field Value
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public Timestamp getCreateTime()
Output only. Timestamp when this ModelEvaluation was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Timestamp when this ModelEvaluation was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public static ModelEvaluation getDefaultInstance()
Returns
public ModelEvaluation getDefaultInstanceForType()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public ModelEvaluation.ModelEvaluationExplanationSpec getExplanationSpecs(int index)
Output only. Describes the values of ExplanationSpec that are used for explaining
the predicted values on the evaluated data.
repeated .google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
public int getExplanationSpecsCount()
Output only. Describes the values of ExplanationSpec that are used for explaining
the predicted values on the evaluated data.
repeated .google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public List<ModelEvaluation.ModelEvaluationExplanationSpec> getExplanationSpecsList()
Output only. Describes the values of ExplanationSpec that are used for explaining
the predicted values on the evaluated data.
repeated .google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public ModelEvaluation.ModelEvaluationExplanationSpecOrBuilder getExplanationSpecsOrBuilder(int index)
Output only. Describes the values of ExplanationSpec that are used for explaining
the predicted values on the evaluated data.
repeated .google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
public List<? extends ModelEvaluation.ModelEvaluationExplanationSpecOrBuilder> getExplanationSpecsOrBuilderList()
Output only. Describes the values of ExplanationSpec that are used for explaining
the predicted values on the evaluated data.
repeated .google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
List<? extends com.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpecOrBuilder> | |
public Value getMetrics()
Output only. Evaluation metrics of the Model. The schema of the metrics is stored in
metrics_schema_uri
.google.protobuf.Value metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
Value | The metrics.
|
public ValueOrBuilder getMetricsOrBuilder()
Output only. Evaluation metrics of the Model. The schema of the metrics is stored in
metrics_schema_uri
.google.protobuf.Value metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public String getMetricsSchemaUri()
Output only. Points to a YAML file stored on Google Cloud Storage describing the
metrics of this ModelEvaluation. The schema is
defined as an OpenAPI 3.0.2 Schema
Object.
string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
String | The metricsSchemaUri.
|
public ByteString getMetricsSchemaUriBytes()
Output only. Points to a YAML file stored on Google Cloud Storage describing the
metrics of this ModelEvaluation. The schema is
defined as an OpenAPI 3.0.2 Schema
Object.
string metrics_schema_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
ByteString | The bytes for metricsSchemaUri.
|
public ModelExplanation getModelExplanation()
Output only. Aggregated explanation metrics for the Model's prediction output over the
data this ModelEvaluation uses. This field is populated only if the Model
is evaluated with explanations, and only for AutoML tabular Models.
.google.cloud.aiplatform.v1beta1.ModelExplanation model_explanation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public ModelExplanationOrBuilder getModelExplanationOrBuilder()
Output only. Aggregated explanation metrics for the Model's prediction output over the
data this ModelEvaluation uses. This field is populated only if the Model
is evaluated with explanations, and only for AutoML tabular Models.
.google.cloud.aiplatform.v1beta1.ModelExplanation model_explanation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Output only. The resource name of the ModelEvaluation.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
Output only. The resource name of the ModelEvaluation.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public Parser<ModelEvaluation> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public String getSliceDimensions(int index)
Output only. All possible dimensions of
ModelEvaluationSlices. The dimensions can be used as the filter of the
ModelService.ListModelEvaluationSlices request, in the form of
slice.dimension = <dimension>
.
repeated string slice_dimensions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The sliceDimensions at the given index.
|
public ByteString getSliceDimensionsBytes(int index)
Output only. All possible dimensions of
ModelEvaluationSlices. The dimensions can be used as the filter of the
ModelService.ListModelEvaluationSlices request, in the form of
slice.dimension = <dimension>
.
repeated string slice_dimensions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the sliceDimensions at the given index.
|
public int getSliceDimensionsCount()
Output only. All possible dimensions of
ModelEvaluationSlices. The dimensions can be used as the filter of the
ModelService.ListModelEvaluationSlices request, in the form of
slice.dimension = <dimension>
.
repeated string slice_dimensions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
int | The count of sliceDimensions.
|
public ProtocolStringList getSliceDimensionsList()
Output only. All possible dimensions of
ModelEvaluationSlices. The dimensions can be used as the filter of the
ModelService.ListModelEvaluationSlices request, in the form of
slice.dimension = <dimension>
.
repeated string slice_dimensions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public boolean hasCreateTime()
Output only. Timestamp when this ModelEvaluation was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the createTime field is set.
|
public boolean hasMetrics()
Output only. Evaluation metrics of the Model. The schema of the metrics is stored in
metrics_schema_uri
.google.protobuf.Value metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the metrics field is set.
|
public boolean hasModelExplanation()
Output only. Aggregated explanation metrics for the Model's prediction output over the
data this ModelEvaluation uses. This field is populated only if the Model
is evaluated with explanations, and only for AutoML tabular Models.
.google.cloud.aiplatform.v1beta1.ModelExplanation model_explanation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the modelExplanation field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public static ModelEvaluation.Builder newBuilder()
Returns
public static ModelEvaluation.Builder newBuilder(ModelEvaluation prototype)
Parameter
Returns
public ModelEvaluation.Builder newBuilderForType()
Returns
protected ModelEvaluation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static ModelEvaluation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ModelEvaluation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ModelEvaluation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static ModelEvaluation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ModelEvaluation parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static ModelEvaluation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ModelEvaluation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ModelEvaluation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ModelEvaluation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ModelEvaluation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ModelEvaluation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static ModelEvaluation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<ModelEvaluation> parser()
Returns
public ModelEvaluation.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions