Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PredictedItem

import type { PredictedItem } from "https://aws-api.deno.dev/v0.3/services/personalizeruntime.ts?docs=full";

An object that identifies an item.

The and APIs return a list of PredictedItems.

interface PredictedItem {
itemId?: string | null;
score?: number | null;
}

§Properties

§
itemId?: string | null
[src]

The recommended item ID.

§
score?: number | null
[src]

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".