libZSservicesZSamazonka-personalize-runtimeZSamazonka-personalize-runtime
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.PersonalizeRuntime.Types.PredictedItem

Description

 
Synopsis

Documentation

data PredictedItem Source #

An object that identifies an item.

The and APIs return a list of PredictedItems.

See: newPredictedItem smart constructor.

Constructors

PredictedItem' 

Fields

  • score :: Maybe Double

    A numeric representation of the model's certainty that the item will be the next user selection. For more information on scoring logic, see how-scores-work.

  • itemId :: Maybe Text

    The recommended item ID.

Instances

Instances details
Eq PredictedItem Source # 
Instance details

Defined in Amazonka.PersonalizeRuntime.Types.PredictedItem

Read PredictedItem Source # 
Instance details

Defined in Amazonka.PersonalizeRuntime.Types.PredictedItem

Show PredictedItem Source # 
Instance details

Defined in Amazonka.PersonalizeRuntime.Types.PredictedItem

Generic PredictedItem Source # 
Instance details

Defined in Amazonka.PersonalizeRuntime.Types.PredictedItem

Associated Types

type Rep PredictedItem :: Type -> Type #

NFData PredictedItem Source # 
Instance details

Defined in Amazonka.PersonalizeRuntime.Types.PredictedItem

Methods

rnf :: PredictedItem -> () #

Hashable PredictedItem Source # 
Instance details

Defined in Amazonka.PersonalizeRuntime.Types.PredictedItem

FromJSON PredictedItem Source # 
Instance details

Defined in Amazonka.PersonalizeRuntime.Types.PredictedItem

type Rep PredictedItem Source # 
Instance details

Defined in Amazonka.PersonalizeRuntime.Types.PredictedItem

type Rep PredictedItem = D1 ('MetaData "PredictedItem" "Amazonka.PersonalizeRuntime.Types.PredictedItem" "libZSservicesZSamazonka-personalize-runtimeZSamazonka-personalize-runtime" 'False) (C1 ('MetaCons "PredictedItem'" 'PrefixI 'True) (S1 ('MetaSel ('Just "score") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "itemId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newPredictedItem :: PredictedItem Source #

Create a value of PredictedItem with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:score:PredictedItem', predictedItem_score - A numeric representation of the model's certainty that the item will be the next user selection. For more information on scoring logic, see how-scores-work.

$sel:itemId:PredictedItem', predictedItem_itemId - The recommended item ID.

predictedItem_score :: Lens' PredictedItem (Maybe Double) Source #

A numeric representation of the model's certainty that the item will be the next user selection. For more information on scoring logic, see how-scores-work.