开发者社区 > 大数据与机器学习 > 人工智能平台PAI > 正文

在机器学习PAI中,hard_negative_sampler_v2 的采样个数计算逻辑是什么?

在机器学习PAI中,hard_negative_sampler_v2 的采样个数计算逻辑是什么? 配置如下所示,使用hard_negative_sampler_v2 采样出来850 个item

hard_negative_sampler_v2 {
user_input_path: ''
item_input_path: ''
pos_edge_input_path: ''
hard_neg_edge_input_path: ''
num_hard_sample: 30
num_sample: 80
num_eval_sample: 2048
attr_delimiter: '^'
attr_fields: 'item_flow'
attr_fields: 'i_all_hl'
attr_fields: 'category'
attr_fields: 'tag'
attr_fields: 'is_vertical'
attr_fields: 'source'
attr_fields: 'video_len'
attr_fields: 'publish_time'
attr_fields: 'i_province_code'
attr_fields: 'i_city_code'
attr_fields: 'i_county_code'
attr_fields: 'create_days'
item_id_field: 'item_flow'
user_id_field: 'user_id'
}

展开
收起
我睡觉不困 2024-08-16 16:25:34 17 0
1 条回答
写回答
取消 提交回答
  • num_hard_sample: 30是per positive sample要采30,它不是share的。此回答整理自钉群"[EasyRec/PAI-Rec]推荐算法交流群"

    2024-08-16 18:03:05
    赞同 21 展开评论 打赏

人工智能平台 PAI(Platform for AI,原机器学习平台PAI)是面向开发者和企业的机器学习/深度学习工程平台,提供包含数据标注、模型构建、模型训练、模型部署、推理优化在内的AI开发全链路服务,内置140+种优化算法,具备丰富的行业场景插件,为用户提供低门槛、高性能的云原生AI工程化能力。

相关产品

  • 人工智能平台 PAI
  • 热门讨论

    热门文章

    相关电子书

    更多
    大规模机器学习在蚂蚁+阿里的应用 立即下载
    阿里巴巴机器学习平台AI 立即下载
    微博机器学习平台架构和实践 立即下载