model_evaluation.proto 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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.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. import "google/api/annotations.proto";
  21. option csharp_namespace = "Google.Cloud.AIPlatform.V1";
  22. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "ModelEvaluationProto";
  25. option java_package = "com.google.cloud.aiplatform.v1";
  26. option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
  27. option ruby_package = "Google::Cloud::AIPlatform::V1";
  28. // A collection of metrics calculated by comparing Model's predictions on all of
  29. // the test data against annotations from the test data.
  30. message ModelEvaluation {
  31. option (google.api.resource) = {
  32. type: "aiplatform.googleapis.com/ModelEvaluation"
  33. pattern: "projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}"
  34. };
  35. // Output only. The resource name of the ModelEvaluation.
  36. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  37. // Output only. Points to a YAML file stored on Google Cloud Storage describing the
  38. // [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
  39. // defined as an OpenAPI 3.0.2 [Schema
  40. // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
  41. string metrics_schema_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  42. // Output only. Evaluation metrics of the Model. The schema of the metrics is stored in
  43. // [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.metrics_schema_uri]
  44. google.protobuf.Value metrics = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  45. // Output only. Timestamp when this ModelEvaluation was created.
  46. google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  47. // Output only. All possible [dimensions][ModelEvaluationSlice.slice.dimension] of
  48. // ModelEvaluationSlices. The dimensions can be used as the filter of the
  49. // [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] request, in the form of
  50. // `slice.dimension = <dimension>`.
  51. repeated string slice_dimensions = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  52. }