Class FeatureMap

public sealed class FeatureMap : IMessage<FeatureMap>, IEquatable<FeatureMap>, IDeepCloneable<FeatureMap>, IBufferMessage, IMessage

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

Inheritance

Object > FeatureMap

Namespace

Google.Cloud.RecommendationEngine.V1Beta1

Assembly

Google.Cloud.RecommendationEngine.V1Beta1.dll

Constructors

FeatureMap()

public FeatureMap()

FeatureMap(FeatureMap)

public FeatureMap(FeatureMap other)
Parameter
TypeNameDescription
FeatureMapother

Properties

CategoricalFeatures

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: { &quot;colors&quot;: {&quot;value&quot;: [&quot;yellow&quot;, &quot;green&quot;]}, &quot;sizes&quot;: {&quot;value&quot;:[&quot;S&quot;, &quot;M&quot;]}

Property Value
TypeDescription
MapField<String, FeatureMap.Types.StringList>

NumericalFeatures

public MapField<string, FeatureMap.Types.FloatList> NumericalFeatures { get; }

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: { &quot;lengths_cm&quot;: {&quot;value&quot;:[2.3, 15.4]}, &quot;heights_cm&quot;: {&quot;value&quot;:[8.1, 6.4]} }

Property Value
TypeDescription
MapField<String, FeatureMap.Types.FloatList>