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.v1.ModelEvaluation
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 ANNOTATION_SCHEMA_URI_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int DATA_ITEM_SCHEMA_URI_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int EXPLANATION_SPECS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int METADATA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int METRICS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int METRICS_SCHEMA_URI_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int MODEL_EXPLANATION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int SLICE_DIMENSIONS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static ModelEvaluation getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static ModelEvaluation.Builder newBuilder()
public static ModelEvaluation.Builder newBuilder(ModelEvaluation prototype)
public static ModelEvaluation parseDelimitedFrom(InputStream input)
public static ModelEvaluation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ModelEvaluation parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static ModelEvaluation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ModelEvaluation parseFrom(ByteString data)
public static ModelEvaluation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ModelEvaluation parseFrom(CodedInputStream input)
public static ModelEvaluation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ModelEvaluation parseFrom(InputStream input)
public static ModelEvaluation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ModelEvaluation parseFrom(ByteBuffer data)
public static ModelEvaluation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<ModelEvaluation> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public String getAnnotationSchemaUri()
Points to a YAML file stored on Google Cloud Storage describing
[EvaluatedDataItemView.predictions][],
[EvaluatedDataItemView.ground_truths][],
EvaluatedAnnotation.predictions,
and
EvaluatedAnnotation.ground_truths.
The schema is defined as an OpenAPI 3.0.2 Schema
Object.
This field is not populated if there are neither EvaluatedDataItemViews nor
EvaluatedAnnotations under this ModelEvaluation.
string annotation_schema_uri = 7;
Returns |
---|
Type | Description |
String | The annotationSchemaUri.
|
public ByteString getAnnotationSchemaUriBytes()
Points to a YAML file stored on Google Cloud Storage describing
[EvaluatedDataItemView.predictions][],
[EvaluatedDataItemView.ground_truths][],
EvaluatedAnnotation.predictions,
and
EvaluatedAnnotation.ground_truths.
The schema is defined as an OpenAPI 3.0.2 Schema
Object.
This field is not populated if there are neither EvaluatedDataItemViews nor
EvaluatedAnnotations under this ModelEvaluation.
string annotation_schema_uri = 7;
Returns |
---|
Type | Description |
ByteString | The bytes for annotationSchemaUri.
|
public Timestamp getCreateTime()
Output only. Timestamp when this ModelEvaluation was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
Timestamp | The createTime.
|
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Timestamp when this ModelEvaluation was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public String getDataItemSchemaUri()
Points to a YAML file stored on Google Cloud Storage describing
[EvaluatedDataItemView.data_item_payload][] and
EvaluatedAnnotation.data_item_payload.
The schema is defined as an OpenAPI 3.0.2 Schema
Object.
This field is not populated if there are neither EvaluatedDataItemViews nor
EvaluatedAnnotations under this ModelEvaluation.
string data_item_schema_uri = 6;
Returns |
---|
Type | Description |
String | The dataItemSchemaUri.
|
public ByteString getDataItemSchemaUriBytes()
Points to a YAML file stored on Google Cloud Storage describing
[EvaluatedDataItemView.data_item_payload][] and
EvaluatedAnnotation.data_item_payload.
The schema is defined as an OpenAPI 3.0.2 Schema
Object.
This field is not populated if there are neither EvaluatedDataItemViews nor
EvaluatedAnnotations under this ModelEvaluation.
string data_item_schema_uri = 6;
Returns |
---|
Type | Description |
ByteString | The bytes for dataItemSchemaUri.
|
public ModelEvaluation getDefaultInstanceForType()
public String getDisplayName()
The display name of the ModelEvaluation.
string display_name = 10;
Returns |
---|
Type | Description |
String | The displayName.
|
public ByteString getDisplayNameBytes()
The display name of the ModelEvaluation.
string display_name = 10;
Returns |
---|
Type | Description |
ByteString | The bytes for displayName.
|
public ModelEvaluation.ModelEvaluationExplanationSpec getExplanationSpecs(int index)
Describes the values of
ExplanationSpec that are used
for explaining the predicted values on the evaluated data.
repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9;
Parameter |
---|
Name | Description |
index | int
|
public int getExplanationSpecsCount()
Describes the values of
ExplanationSpec that are used
for explaining the predicted values on the evaluated data.
repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9;
Returns |
---|
Type | Description |
int | |
public List<ModelEvaluation.ModelEvaluationExplanationSpec> getExplanationSpecsList()
Describes the values of
ExplanationSpec that are used
for explaining the predicted values on the evaluated data.
repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9;
public ModelEvaluation.ModelEvaluationExplanationSpecOrBuilder getExplanationSpecsOrBuilder(int index)
Describes the values of
ExplanationSpec that are used
for explaining the predicted values on the evaluated data.
repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9;
Parameter |
---|
Name | Description |
index | int
|
public List<? extends ModelEvaluation.ModelEvaluationExplanationSpecOrBuilder> getExplanationSpecsOrBuilderList()
Describes the values of
ExplanationSpec that are used
for explaining the predicted values on the evaluated data.
repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpecOrBuilder> | |
public Value getMetadata()
The metadata of the ModelEvaluation.
For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
"evaluation_dataset_path".
.google.protobuf.Value metadata = 11;
Returns |
---|
Type | Description |
Value | The metadata.
|
public ValueOrBuilder getMetadataOrBuilder()
The metadata of the ModelEvaluation.
For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
"evaluation_dataset_path".
.google.protobuf.Value metadata = 11;
public Value getMetrics()
Evaluation metrics of the Model. The schema of the metrics is stored in
metrics_schema_uri
.google.protobuf.Value metrics = 3;
Returns |
---|
Type | Description |
Value | The metrics.
|
public ValueOrBuilder getMetricsOrBuilder()
Evaluation metrics of the Model. The schema of the metrics is stored in
metrics_schema_uri
.google.protobuf.Value metrics = 3;
public String getMetricsSchemaUri()
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;
Returns |
---|
Type | Description |
String | The metricsSchemaUri.
|
public ByteString getMetricsSchemaUriBytes()
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;
Returns |
---|
Type | Description |
ByteString | The bytes for metricsSchemaUri.
|
public ModelExplanation getModelExplanation()
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.v1.ModelExplanation model_explanation = 8;
public ModelExplanationOrBuilder getModelExplanationOrBuilder()
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.v1.ModelExplanation model_explanation = 8;
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
public Parser<ModelEvaluation> getParserForType()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public String getSliceDimensions(int index)
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;
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)
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;
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()
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;
Returns |
---|
Type | Description |
int | The count of sliceDimensions.
|
public ProtocolStringList getSliceDimensionsList()
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;
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 hasMetadata()
The metadata of the ModelEvaluation.
For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
"evaluation_dataset_path".
.google.protobuf.Value metadata = 11;
Returns |
---|
Type | Description |
boolean | Whether the metadata field is set.
|
public boolean hasMetrics()
Evaluation metrics of the Model. The schema of the metrics is stored in
metrics_schema_uri
.google.protobuf.Value metrics = 3;
Returns |
---|
Type | Description |
boolean | Whether the metrics field is set.
|
public boolean hasModelExplanation()
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.v1.ModelExplanation model_explanation = 8;
Returns |
---|
Type | Description |
boolean | Whether the modelExplanation field is set.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ModelEvaluation.Builder newBuilderForType()
protected ModelEvaluation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public ModelEvaluation.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides