@@ -38,31 +38,70 @@ message ModelEvaluation {
38
38
pattern : "projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}"
39
39
};
40
40
41
+ message ModelEvaluationExplanationSpec {
42
+ // Explanation type.
43
+ //
44
+ // For AutoML Image Classification models, possible values are:
45
+ //
46
+ // * `image-integrated-gradients`
47
+ // * `image-xrai`
48
+ string explanation_type = 1 ;
49
+
50
+ // Explanation spec details.
51
+ ExplanationSpec explanation_spec = 2 ;
52
+ }
53
+
41
54
// Output only. The resource name of the ModelEvaluation.
42
55
string name = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
43
56
44
- // Output only. Points to a YAML file stored on Google Cloud Storage describing the
57
+ // Points to a YAML file stored on Google Cloud Storage describing the
45
58
// [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
46
59
// defined as an OpenAPI 3.0.2 [Schema
47
60
// Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
48
- string metrics_schema_uri = 2 [ (google.api .field_behavior ) = OUTPUT_ONLY ] ;
61
+ string metrics_schema_uri = 2 ;
49
62
50
- // Output only. Evaluation metrics of the Model. The schema of the metrics is stored in
63
+ // Evaluation metrics of the Model. The schema of the metrics is stored in
51
64
// [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.metrics_schema_uri]
52
- google.protobuf.Value metrics = 3 [ (google.api .field_behavior ) = OUTPUT_ONLY ] ;
65
+ google.protobuf.Value metrics = 3 ;
53
66
54
67
// Output only. Timestamp when this ModelEvaluation was created.
55
68
google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior ) = OUTPUT_ONLY ];
56
69
57
- // Output only. All possible [dimensions][ModelEvaluationSlice.slice.dimension] of
70
+ // All possible [dimensions][ModelEvaluationSlice.slice.dimension] of
58
71
// ModelEvaluationSlices. The dimensions can be used as the filter of the
59
72
// [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] request, in the form of
60
73
// `slice.dimension = <dimension>`.
61
- repeated string slice_dimensions = 5 [(google.api.field_behavior ) = OUTPUT_ONLY ];
74
+ repeated string slice_dimensions = 5 ;
75
+
76
+ // Points to a YAML file stored on Google Cloud Storage describing
77
+ // [EvaluatedDataItemView.data_item_payload][] and
78
+ // [EvaluatedAnnotation.data_item_payload][]. The schema is defined as an
79
+ // OpenAPI 3.0.2 [Schema
80
+ // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
81
+ //
82
+ // This field is not populated if there are neither EvaluatedDataItemViews nor
83
+ // EvaluatedAnnotations under this ModelEvaluation.
84
+ string data_item_schema_uri = 6 ;
62
85
63
- // Output only. Aggregated explanation metrics for the Model's prediction output over the
86
+ // Points to a YAML file stored on Google Cloud Storage describing
87
+ // [EvaluatedDataItemView.predictions][],
88
+ // [EvaluatedDataItemView.ground_truths][],
89
+ // [EvaluatedAnnotation.predictions][], and
90
+ // [EvaluatedAnnotation.ground_truths][]. The schema is defined as an
91
+ // OpenAPI 3.0.2 [Schema
92
+ // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
93
+ //
94
+ // This field is not populated if there are neither EvaluatedDataItemViews nor
95
+ // EvaluatedAnnotations under this ModelEvaluation.
96
+ string annotation_schema_uri = 7 ;
97
+
98
+ // Aggregated explanation metrics for the Model's prediction output over the
64
99
// data this ModelEvaluation uses. This field is populated only if the Model
65
100
// is evaluated with explanations, and only for AutoML tabular Models.
66
101
//
67
- ModelExplanation model_explanation = 8 [(google.api.field_behavior ) = OUTPUT_ONLY ];
102
+ ModelExplanation model_explanation = 8 ;
103
+
104
+ // Describes the values of [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used for explaining
105
+ // the predicted values on the evaluated data.
106
+ repeated ModelEvaluationExplanationSpec explanation_specs = 9 ;
68
107
}
0 commit comments