public sealed class FeatureMap : IMessage<FeatureMap>, IEquatable<FeatureMap>, IDeepCloneable<FeatureMap>, IBufferMessage, IMessage
Reference documentation and code samples for the Recommendations AI v1beta1 API class FeatureMap.
FeatureMap represents extra features that customers want to include in the
recommendation model for catalogs/user events as categorical/numerical
features.
public MapField<string, FeatureMap.Types.StringList> CategoricalFeatures { get; }
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"]}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eFeatureMap\u003c/code\u003e class in the Recommendations AI v1beta1 API allows users to include extra categorical and numerical features in the recommendation model for catalogs and user events.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFeatureMap\u003c/code\u003e implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, enabling various functionalities like message handling, equality checks, deep cloning, and buffered message operations.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors: a default \u003ccode\u003eFeatureMap()\u003c/code\u003e constructor and a copy constructor \u003ccode\u003eFeatureMap(FeatureMap other)\u003c/code\u003e to create instances, and copy instances of the class.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFeatureMap\u003c/code\u003e contains two key properties: \u003ccode\u003eCategoricalFeatures\u003c/code\u003e for storing features with limited possible values, and \u003ccode\u003eNumericalFeatures\u003c/code\u003e for storing features with numerical values, both represented as map fields.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFeatureMap\u003c/code\u003e class is located within the \u003ccode\u003eGoogle.Cloud.RecommendationEngine.V1Beta1\u003c/code\u003e namespace and is part of the \u003ccode\u003eGoogle.Cloud.RecommendationEngine.V1Beta1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]