Udostępnij za pośrednictwem


PersonalizerClient.RankAsync Method

Definition

Overloads

RankAsync(IEnumerable<PersonalizerRankableAction>, IEnumerable<Object>, CancellationToken)

Submit a Personalizer rank request. Receives a context and a list of actions. Returns which of the provided actions should be used by your application, in rewardActionId.

RankAsync(PersonalizerRankOptions, CancellationToken)

Submit a Personalizer rank request. Receives a context and a list of actions. Returns which of the provided actions should be used by your application, in rewardActionId.

RankAsync(IEnumerable<PersonalizerRankableAction>, IEnumerable<Object>, CancellationToken)

Source:
PersonalizerClient.cs

Submit a Personalizer rank request. Receives a context and a list of actions. Returns which of the provided actions should be used by your application, in rewardActionId.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Personalizer.PersonalizerRankResult>> RankAsync (System.Collections.Generic.IEnumerable<Azure.AI.Personalizer.PersonalizerRankableAction> actions, System.Collections.Generic.IEnumerable<object> contextFeatures, System.Threading.CancellationToken cancellationToken = default);
abstract member RankAsync : seq<Azure.AI.Personalizer.PersonalizerRankableAction> * seq<obj> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Personalizer.PersonalizerRankResult>>
override this.RankAsync : seq<Azure.AI.Personalizer.PersonalizerRankableAction> * seq<obj> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Personalizer.PersonalizerRankResult>>
Public Overridable Function RankAsync (actions As IEnumerable(Of PersonalizerRankableAction), contextFeatures As IEnumerable(Of Object), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PersonalizerRankResult))

Parameters

actions
IEnumerable<PersonalizerRankableAction>

The set of actions the Personalizer service can pick from. The set should not contain more than 50 actions. The order of the actions does not affect the rank result but the order should match the sequence your application would have used to display them. The first item in the array will be used as Baseline item in Offline evaluations.

contextFeatures
IEnumerable<Object>

Features of the context used for Personalizer as a dictionary of dictionaries. This depends on the application, and typically includes features about the current user, their device, profile information, aggregated data about time and date, etc. Features should not include personally identifiable information (PII), unique UserIDs, or precise timestamps. Need to be JSON serializable. https://docs.microsoft.com/azure/cognitive-services/personalizer/concepts-features.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to

RankAsync(PersonalizerRankOptions, CancellationToken)

Source:
PersonalizerClient.cs

Submit a Personalizer rank request. Receives a context and a list of actions. Returns which of the provided actions should be used by your application, in rewardActionId.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Personalizer.PersonalizerRankResult>> RankAsync (Azure.AI.Personalizer.PersonalizerRankOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member RankAsync : Azure.AI.Personalizer.PersonalizerRankOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Personalizer.PersonalizerRankResult>>
override this.RankAsync : Azure.AI.Personalizer.PersonalizerRankOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Personalizer.PersonalizerRankResult>>
Public Overridable Function RankAsync (options As PersonalizerRankOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PersonalizerRankResult))

Parameters

options
PersonalizerRankOptions

A Personalizer Rank request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to