Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationModelEvaluation
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationModelEvaluation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb
Overview
Represents evaluation result of a conversation model.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#display_name ⇒ String
Optional.
-
#evaluation_config ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EvaluationConfig
The configuration for model evaluation.
-
#name ⇒ String
The resource name of the evaluation.
-
#raw_human_eval_template_csv ⇒ String
Output only.
-
#smart_reply_metrics ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyMetrics
The evaluation metrics for smart reply model.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2ConversationModelEvaluation
constructor
A new instance of GoogleCloudDialogflowV2ConversationModelEvaluation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2ConversationModelEvaluation
Returns a new instance of GoogleCloudDialogflowV2ConversationModelEvaluation.
9288 9289 9290 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9288 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Creation time of this model.
Corresponds to the JSON property createTime
9249 9250 9251 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9249 def create_time @create_time end |
#display_name ⇒ String
Optional. The display name of the model evaluation. At most 64 bytes long.
Corresponds to the JSON property displayName
9254 9255 9256 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9254 def display_name @display_name end |
#evaluation_config ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EvaluationConfig
The configuration for model evaluation.
Corresponds to the JSON property evaluationConfig
9259 9260 9261 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9259 def evaluation_config @evaluation_config end |
#name ⇒ String
The resource name of the evaluation. Format: projects//conversationModels//
evaluations/
Corresponds to the JSON property name
9265 9266 9267 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9265 def name @name end |
#raw_human_eval_template_csv ⇒ String
Output only. Human eval template in csv format. It tooks real-world
conversations provided through input dataset, generates example suggestions
for customer to verify quality of the model. For Smart Reply, the generated
csv file contains columns of Context, (Suggestions,Q1,Q2)*3, Actual reply.
Context contains at most 10 latest messages in the conversation prior to the
current suggestion. Q1: "Would you send it as the next message of agent?"
Evaluated based on whether the suggest is appropriate to be sent by agent in
current context. Q2: "Does the suggestion move the conversation closer to
resolution?" Evaluated based on whether the suggestion provide solutions, or
answers customer's question or collect information from customer to resolve
the customer's issue. Actual reply column contains the actual agent reply sent
in the context.
Corresponds to the JSON property rawHumanEvalTemplateCsv
9281 9282 9283 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9281 def raw_human_eval_template_csv @raw_human_eval_template_csv end |
#smart_reply_metrics ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyMetrics
The evaluation metrics for smart reply model.
Corresponds to the JSON property smartReplyMetrics
9286 9287 9288 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9286 def smart_reply_metrics @smart_reply_metrics end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9293 9294 9295 9296 9297 9298 9299 9300 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9293 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @display_name = args[:display_name] if args.key?(:display_name) @evaluation_config = args[:evaluation_config] if args.key?(:evaluation_config) @name = args[:name] if args.key?(:name) @raw_human_eval_template_csv = args[:raw_human_eval_template_csv] if args.key?(:raw_human_eval_template_csv) @smart_reply_metrics = args[:smart_reply_metrics] if args.key?(:smart_reply_metrics) end |