model_evaluation.proto 5.0 KB

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