class Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap

FeatureMap represents extra features that customers want to include in the recommendation model for catalogs/user events as categorical/numerical features.

Attributes

categorical_features[RW]

Categorical features that can take on one of a limited number of possible values. Some examples would be the brand/maker of a product, or country of a customer. Feature names and values must be UTF-8 encoded strings. For example: “ “colors”: `“value”: [“yellow”, “green”]`, “sizes”: `“value”:[“S”, “M”]“ Corresponds to the JSON property `categoricalFeatures` @return [Hash<String,Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMapStringList>]

numerical_features[RW]

Numerical features. Some examples would be the height/weight of a product, or age of a customer. Feature names must be UTF-8 encoded strings. For example: “ “lengths_cm”: `“value”:[2.3, 15.4]`, “heights_cm”: `“value”:[8.1, 6.4]` “ Corresponds to the JSON property `numericalFeatures` @return [Hash<String,Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMapFloatList>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/recommendationengine_v1beta1/classes.rb, line 498
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/recommendationengine_v1beta1/classes.rb, line 503
def update!(**args)
  @categorical_features = args[:categorical_features] if args.key?(:categorical_features)
  @numerical_features = args[:numerical_features] if args.key?(:numerical_features)
end