Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

推荐任务问题 #108

Open
luanxian1 opened this issue Oct 16, 2022 · 2 comments
Open

推荐任务问题 #108

luanxian1 opened this issue Oct 16, 2022 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@luanxian1
Copy link

我想请教一下这个代码能否将BPR任务改成评分预测任务

@Sherry-XLL Sherry-XLL self-assigned this Feb 7, 2023
@Sherry-XLL Sherry-XLL added the question Further information is requested label Feb 7, 2023
@Sherry-XLL
Copy link
Member

@luanxian1 您好,RecSysDatasets 是一个数据集的 repo,不涉及具体的排序或评分预测任务。

RecBole 中,若您需要将 BPR 的排序任务改为评分预测任务,则需要按照 Label of data 将数据的标签设置为评分 (如 rating),并在模型中修改数据输入的 InputType 以及计算损失函数的函数 calculate_loss

@HowardZJU
Copy link

@luanxian1 您好,RecSysDatasets 是一个数据集的 repo,不涉及具体的排序或评分预测任务。

RecBole 中,若您需要将 BPR 的排序任务改为评分预测任务,则需要按照 Label of data 将数据的标签设置为评分 (如 rating),并在模型中修改数据输入的 InputType 以及计算损失函数的函数 calculate_loss

你好,感谢解答!我最近也有评分预测任务的需求,请问如果按照这种方式处理后,trainer中的label是truncate后的,还是没有truncate的呢?能不能直接给模型输入不truncate的评分,构造一个回归任务?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants