你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PersonalizerServiceProperties 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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)
参数
- rewardWaitTime
- TimeSpan
等待到请求标记为默认奖励的时间跨度,应介于 5 秒到 2 天之间。 例如,PT5M () 5 分钟。 有关时间格式的信息,请参阅 http://en.wikipedia.org/wiki/ISO_8601#Durations
- defaultReward
- Single
如果未在指定的等待时间内收到奖励,则给予的奖励。
- rewardAggregation
- String
如果在 rewardWaitTime 结束之前收到多个奖励分数,则用于处理奖励的函数。
- explorationPercentage
- Single
将使用浏览的排名响应的百分比。
- modelExportFrequency
- TimeSpan
个性化体验创建服务将在每个指定的时间段内自动为联机排名使用经过训练的更新模型。 例如,PT5M () 5 分钟。 有关时间格式的信息,请参阅 http://en.wikipedia.org/wiki/ISO_8601#Durations
- logRetentionDays
- Int32
要维护的历史日志的天数。 -1 表示永远不会删除日志。
例外
rewardAggregation
为 null。