Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EvaluationConfig

Inherits:
Object
  • Object
show all
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

The configuration for model evaluation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2EvaluationConfig

Returns a new instance of GoogleCloudDialogflowV2EvaluationConfig.



11066
11067
11068
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11066

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#datasetsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputDataset>

Required. Datasets used for evaluation. Corresponds to the JSON property datasets



11054
11055
11056
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11054

def datasets
  @datasets
end

#smart_compose_configGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig

Smart compose specific configuration for evaluation job. Corresponds to the JSON property smartComposeConfig



11059
11060
11061
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11059

def smart_compose_config
  @smart_compose_config
end

#smart_reply_configGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig

Smart reply specific configuration for evaluation job. Corresponds to the JSON property smartReplyConfig



11064
11065
11066
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11064

def smart_reply_config
  @smart_reply_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11071
11072
11073
11074
11075
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11071

def update!(**args)
  @datasets = args[:datasets] if args.key?(:datasets)
  @smart_compose_config = args[:smart_compose_config] if args.key?(:smart_compose_config)
  @smart_reply_config = args[:smart_reply_config] if args.key?(:smart_reply_config)
end