model_evaluation_slice.proto 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // Copyright 2022 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.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/struct.proto";
  19. import "google/protobuf/timestamp.proto";
  20. option csharp_namespace = "Google.Cloud.AIPlatform.V1";
  21. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "ModelEvaluationSliceProto";
  24. option java_package = "com.google.cloud.aiplatform.v1";
  25. option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
  26. option ruby_package = "Google::Cloud::AIPlatform::V1";
  27. // A collection of metrics calculated by comparing Model's predictions on a
  28. // slice of the test data against ground truth annotations.
  29. message ModelEvaluationSlice {
  30. option (google.api.resource) = {
  31. type: "aiplatform.googleapis.com/ModelEvaluationSlice"
  32. pattern: "projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}"
  33. };
  34. // Definition of a slice.
  35. message Slice {
  36. // Output only. The dimension of the slice.
  37. // Well-known dimensions are:
  38. // * `annotationSpec`: This slice is on the test data that has either
  39. // ground truth or prediction with [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name]
  40. // equals to [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value].
  41. string dimension = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  42. // Output only. The value of the dimension in this slice.
  43. string value = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  44. }
  45. // Output only. The resource name of the ModelEvaluationSlice.
  46. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  47. // Output only. The slice of the test data that is used to evaluate the Model.
  48. Slice slice = 2 [(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.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The
  51. // schema is 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 = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  54. // Output only. Sliced evaluation metrics of the Model. The schema of the metrics is stored
  55. // in [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics_schema_uri]
  56. google.protobuf.Value metrics = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  57. // Output only. Timestamp when this ModelEvaluationSlice was created.
  58. google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  59. }