model_evaluation.proto 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // Copyright 2021 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.aiplatform.v1beta1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/cloud/aiplatform/v1beta1/explanation.proto";
  19. import "google/protobuf/struct.proto";
  20. import "google/protobuf/timestamp.proto";
  21. import "google/api/annotations.proto";
  22. option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1";
  23. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "ModelEvaluationProto";
  26. option java_package = "com.google.cloud.aiplatform.v1beta1";
  27. option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1";
  28. option ruby_package = "Google::Cloud::AIPlatform::V1beta1";
  29. // A collection of metrics calculated by comparing Model's predictions on all of
  30. // the test data against annotations from the test data.
  31. message ModelEvaluation {
  32. option (google.api.resource) = {
  33. type: "aiplatform.googleapis.com/ModelEvaluation"
  34. pattern: "projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}"
  35. };
  36. message ModelEvaluationExplanationSpec {
  37. // Explanation type.
  38. //
  39. // For AutoML Image Classification models, possible values are:
  40. //
  41. // * `image-integrated-gradients`
  42. // * `image-xrai`
  43. string explanation_type = 1;
  44. // Explanation spec details.
  45. ExplanationSpec explanation_spec = 2;
  46. }
  47. // Output only. The resource name of the ModelEvaluation.
  48. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  49. // Output only. Points to a YAML file stored on Google Cloud Storage describing the
  50. // [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
  51. // defined as an OpenAPI 3.0.2 [Schema
  52. // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
  53. string metrics_schema_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  54. // Output only. Evaluation metrics of the Model. The schema of the metrics is stored in
  55. // [metrics_schema_uri][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics_schema_uri]
  56. google.protobuf.Value metrics = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  57. // Output only. Timestamp when this ModelEvaluation was created.
  58. google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  59. // Output only. All possible [dimensions][ModelEvaluationSlice.slice.dimension] of
  60. // ModelEvaluationSlices. The dimensions can be used as the filter of the
  61. // [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlices] request, in the form of
  62. // `slice.dimension = <dimension>`.
  63. repeated string slice_dimensions = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  64. // Output only. Aggregated explanation metrics for the Model's prediction output over the
  65. // data this ModelEvaluation uses. This field is populated only if the Model
  66. // is evaluated with explanations, and only for AutoML tabular Models.
  67. //
  68. ModelExplanation model_explanation = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  69. // Output only. Describes the values of [ExplanationSpec][google.cloud.aiplatform.v1beta1.ExplanationSpec] that are used for explaining
  70. // the predicted values on the evaluated data.
  71. repeated ModelEvaluationExplanationSpec explanation_specs = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  72. }