model_evaluation.proto 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. // Copyright 2020 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.automl.v1beta1;
  16. import "google/api/resource.proto";
  17. import "google/cloud/automl/v1beta1/classification.proto";
  18. import "google/cloud/automl/v1beta1/detection.proto";
  19. import "google/cloud/automl/v1beta1/regression.proto";
  20. import "google/cloud/automl/v1beta1/tables.proto";
  21. import "google/cloud/automl/v1beta1/text_extraction.proto";
  22. import "google/cloud/automl/v1beta1/text_sentiment.proto";
  23. import "google/cloud/automl/v1beta1/translation.proto";
  24. import "google/protobuf/timestamp.proto";
  25. option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
  26. option java_multiple_files = true;
  27. option java_package = "com.google.cloud.automl.v1beta1";
  28. option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
  29. option ruby_package = "Google::Cloud::AutoML::V1beta1";
  30. // Evaluation results of a model.
  31. message ModelEvaluation {
  32. option (google.api.resource) = {
  33. type: "automl.googleapis.com/ModelEvaluation"
  34. pattern: "projects/{project}/locations/{location}/models/{model}/modelEvaluations/{model_evaluation}"
  35. };
  36. // Output only. Problem type specific evaluation metrics.
  37. oneof metrics {
  38. // Model evaluation metrics for image, text, video and tables
  39. // classification.
  40. // Tables problem is considered a classification when the target column
  41. // is CATEGORY DataType.
  42. ClassificationEvaluationMetrics classification_evaluation_metrics = 8;
  43. // Model evaluation metrics for Tables regression.
  44. // Tables problem is considered a regression when the target column
  45. // has FLOAT64 DataType.
  46. RegressionEvaluationMetrics regression_evaluation_metrics = 24;
  47. // Model evaluation metrics for translation.
  48. TranslationEvaluationMetrics translation_evaluation_metrics = 9;
  49. // Model evaluation metrics for image object detection.
  50. ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;
  51. // Model evaluation metrics for video object tracking.
  52. VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14;
  53. // Evaluation metrics for text sentiment models.
  54. TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;
  55. // Evaluation metrics for text extraction models.
  56. TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;
  57. }
  58. // Output only. Resource name of the model evaluation.
  59. // Format:
  60. //
  61. // `projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}`
  62. string name = 1;
  63. // Output only. The ID of the annotation spec that the model evaluation applies to. The
  64. // The ID is empty for the overall model evaluation.
  65. // For Tables annotation specs in the dataset do not exist and this ID is
  66. // always not set, but for CLASSIFICATION
  67. //
  68. // [prediction_type-s][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]
  69. // the
  70. // [display_name][google.cloud.automl.v1beta1.ModelEvaluation.display_name]
  71. // field is used.
  72. string annotation_spec_id = 2;
  73. // Output only. The value of
  74. // [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] at
  75. // the moment when the model was trained. Because this field returns a value
  76. // at model training time, for different models trained from the same dataset,
  77. // the values may differ, since display names could had been changed between
  78. // the two model's trainings.
  79. // For Tables CLASSIFICATION
  80. //
  81. // [prediction_type-s][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]
  82. // distinct values of the target column at the moment of the model evaluation
  83. // are populated here.
  84. // The display_name is empty for the overall model evaluation.
  85. string display_name = 15;
  86. // Output only. Timestamp when this model evaluation was created.
  87. google.protobuf.Timestamp create_time = 5;
  88. // Output only. The number of examples used for model evaluation, i.e. for
  89. // which ground truth from time of model creation is compared against the
  90. // predicted annotations created by the model.
  91. // For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is
  92. // the total number of all examples used for evaluation.
  93. // Otherwise, this is the count of examples that according to the ground
  94. // truth were annotated by the
  95. //
  96. // [annotation_spec_id][google.cloud.automl.v1beta1.ModelEvaluation.annotation_spec_id].
  97. int32 evaluated_example_count = 6;
  98. }