Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb

Overview

Additional configs for the frequently-bought-together model type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfig

Returns a new instance of GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfig.



4907
4908
4909
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4907

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

Instance Attribute Details

#context_products_typeString

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

Returns:

  • (String)


4905
4906
4907
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4905

def context_products_type
  @context_products_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4912
4913
4914
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4912

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