FeatureMap represents extra features that customers want to include in the recommendation model for catalogs/user events as categorical/numerical features.
JSON representation | |
---|---|
{ "categoricalFeatures": { string: { object ( |
Fields | |
---|---|
categoricalFeatures |
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: |
numericalFeatures |
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: |
StringList
A list of string features.
JSON representation | |
---|---|
{ "value": [ string ] } |
Fields | |
---|---|
value[] |
String feature value with a length limit of 128 bytes. |
FloatList
A list of float features.
JSON representation | |
---|---|
{ "value": [ number ] } |
Fields | |
---|---|
value[] |
Float feature value. |