Share via


PersonalizerServiceProperties Constructor

Definition

Initializes a new instance of PersonalizerServiceProperties.

public PersonalizerServiceProperties (TimeSpan rewardWaitTime, float defaultReward, string rewardAggregation, float explorationPercentage, TimeSpan modelExportFrequency, int logRetentionDays);
new Azure.AI.Personalizer.PersonalizerServiceProperties : TimeSpan * single * string * single * TimeSpan * int -> Azure.AI.Personalizer.PersonalizerServiceProperties
Public Sub New (rewardWaitTime As TimeSpan, defaultReward As Single, rewardAggregation As String, explorationPercentage As Single, modelExportFrequency As TimeSpan, logRetentionDays As Integer)

Parameters

rewardWaitTime
TimeSpan

The time span waited until a request is marked with the default reward and should be between 5 seconds and 2 days. For example, PT5M (5 mins). For information about the time format, see http://en.wikipedia.org/wiki/ISO_8601#Durations

defaultReward
Single

The reward given if a reward is not received within the specified wait time.

rewardAggregation
String

The function used to process rewards, if multiple reward scores are received before rewardWaitTime is over.

explorationPercentage
Single

The percentage of rank responses that will use exploration.

modelExportFrequency
TimeSpan

Personalizer will start using the most updated trained model for online ranks automatically every specified time period. For example, PT5M (5 mins). For information about the time format, see http://en.wikipedia.org/wiki/ISO_8601#Durations

logRetentionDays
Int32

Number of days historical logs are to be maintained. -1 implies the logs will never be deleted.

Exceptions

rewardAggregation is null.

Applies to