Struct gapi_grpc::google::cloud::recommendationengine::v1beta1::FeatureMap[][src]

pub struct FeatureMap {
    pub categorical_features: HashMap<String, StringList>,
    pub numerical_features: HashMap<String, FloatList>,
}

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

Fields

categorical_features: HashMap<String, 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: HashMap<String, 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]} }

Trait Implementations

impl Clone for FeatureMap[src]

impl Debug for FeatureMap[src]

impl Default for FeatureMap[src]

impl Message for FeatureMap[src]

impl PartialEq<FeatureMap> for FeatureMap[src]

impl StructuralPartialEq for FeatureMap[src]

Auto Trait Implementations

impl RefUnwindSafe for FeatureMap

impl Send for FeatureMap

impl Sync for FeatureMap

impl Unpin for FeatureMap

impl UnwindSafe for FeatureMap

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]