Recommendations AI V1beta1 API - Class Google::Cloud::RecommendationEngine::V1beta1::FeatureMap (v0.9.1)

Reference documentation and code samples for the Recommendations AI V1beta1 API class Google::Cloud::RecommendationEngine::V1beta1::FeatureMap.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#categorical_features

def categorical_features() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::RecommendationEngine::V1beta1::FeatureMap::StringList}
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::RecommendationEngine::V1beta1::FeatureMap::StringList}) — 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"]}

#categorical_features=

def categorical_features=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::RecommendationEngine::V1beta1::FeatureMap::StringList}
Parameter
  • value (::Google::Protobuf::Map{::String => ::Google::Cloud::RecommendationEngine::V1beta1::FeatureMap::StringList}) — 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"]}

Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::RecommendationEngine::V1beta1::FeatureMap::StringList}) — 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"]}

#numerical_features

def numerical_features() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::RecommendationEngine::V1beta1::FeatureMap::FloatList}
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::RecommendationEngine::V1beta1::FeatureMap::FloatList}) — 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]} }

#numerical_features=

def numerical_features=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::RecommendationEngine::V1beta1::FeatureMap::FloatList}
Parameter
  • value (::Google::Protobuf::Map{::String => ::Google::Cloud::RecommendationEngine::V1beta1::FeatureMap::FloatList}) — 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]} }

Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::RecommendationEngine::V1beta1::FeatureMap::FloatList}) — 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]} }