Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb
Overview
Additional configs for the frequently-bought-together model type.
Instance Attribute Summary collapse
-
#context_products_type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig
constructor
A new instance of GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig
Returns a new instance of GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig.
4355 4356 4357 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4355 def initialize(**args) update!(**args) end |
Instance Attribute Details
#context_products_type ⇒ String
Optional. Specifies the context of the model when it is used in predict
requests. Can only be set for the frequently-bought-together
type. If it isn'
t specified, it defaults to MULTIPLE_CONTEXT_PRODUCTS.
Corresponds to the JSON property contextProductsType
4353 4354 4355 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4353 def context_products_type @context_products_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4360 4361 4362 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4360 def update!(**args) @context_products_type = args[:context_products_type] if args.key?(:context_products_type) end |