Class: Aws::PersonalizeRuntime::Types::PredictedItem

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-personalizeruntime/lib/aws-sdk-personalizeruntime/types.rb

Overview

An object that identifies an item.

The and APIs return a list of PredictedItems.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#item_idString

The recommended item ID.

Returns:

  • (String)


390
391
392
393
394
395
396
397
# File 'gems/aws-sdk-personalizeruntime/lib/aws-sdk-personalizeruntime/types.rb', line 390

class PredictedItem < Struct.new(
  :item_id,
  :score,
  :promotion_name,
  :metadata)
  SENSITIVE = []
  include Aws::Structure
end

#metadataHash<String,String>

Metadata about the item from your Items dataset.

Returns:

  • (Hash<String,String>)


390
391
392
393
394
395
396
397
# File 'gems/aws-sdk-personalizeruntime/lib/aws-sdk-personalizeruntime/types.rb', line 390

class PredictedItem < Struct.new(
  :item_id,
  :score,
  :promotion_name,
  :metadata)
  SENSITIVE = []
  include Aws::Structure
end

#promotion_nameString

The name of the promotion that included the predicted item.

Returns:

  • (String)


390
391
392
393
394
395
396
397
# File 'gems/aws-sdk-personalizeruntime/lib/aws-sdk-personalizeruntime/types.rb', line 390

class PredictedItem < Struct.new(
  :item_id,
  :score,
  :promotion_name,
  :metadata)
  SENSITIVE = []
  include Aws::Structure
end

#scoreFloat

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.

Returns:

  • (Float)


390
391
392
393
394
395
396
397
# File 'gems/aws-sdk-personalizeruntime/lib/aws-sdk-personalizeruntime/types.rb', line 390

class PredictedItem < Struct.new(
  :item_id,
  :score,
  :promotion_name,
  :metadata)
  SENSITIVE = []
  include Aws::Structure
end