model_evaluation.proto 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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.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. option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1";
  22. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "ModelEvaluationProto";
  25. option java_package = "com.google.cloud.aiplatform.v1beta1";
  26. option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1";
  27. option ruby_package = "Google::Cloud::AIPlatform::V1beta1";
  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. message ModelEvaluationExplanationSpec {
  36. // Explanation type.
  37. //
  38. // For AutoML Image Classification models, possible values are:
  39. //
  40. // * `image-integrated-gradients`
  41. // * `image-xrai`
  42. string explanation_type = 1;
  43. // Explanation spec details.
  44. ExplanationSpec explanation_spec = 2;
  45. }
  46. // Output only. The resource name of the ModelEvaluation.
  47. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  48. // The display name of the ModelEvaluation.
  49. string display_name = 10;
  50. // Points to a YAML file stored on Google Cloud Storage describing the
  51. // [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is
  52. // defined as an OpenAPI 3.0.2 [Schema
  53. // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
  54. string metrics_schema_uri = 2;
  55. // Evaluation metrics of the Model. The schema of the metrics is stored in
  56. // [metrics_schema_uri][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics_schema_uri]
  57. google.protobuf.Value metrics = 3;
  58. // Output only. Timestamp when this ModelEvaluation was created.
  59. google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  60. // All possible [dimensions][ModelEvaluationSlice.slice.dimension] of
  61. // ModelEvaluationSlices. The dimensions can be used as the filter of the
  62. // [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlices] request, in the form of
  63. // `slice.dimension = <dimension>`.
  64. repeated string slice_dimensions = 5;
  65. // Aggregated explanation metrics for the Model's prediction output over the
  66. // data this ModelEvaluation uses. This field is populated only if the Model
  67. // is evaluated with explanations, and only for AutoML tabular Models.
  68. //
  69. ModelExplanation model_explanation = 8;
  70. // Describes the values of [ExplanationSpec][google.cloud.aiplatform.v1beta1.ExplanationSpec] that are used for explaining
  71. // the predicted values on the evaluated data.
  72. repeated ModelEvaluationExplanationSpec explanation_specs = 9;
  73. // The metadata of the ModelEvaluation.
  74. // For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
  75. // structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
  76. // "evaluation_dataset_path".
  77. google.protobuf.Value metadata = 11;
  78. }