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

大佬请问为什么每次评论完后usercf返回的对象数量一直时0,数据量应该是够的 #2

Open
IstarsGandalf opened this issue Apr 6, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@IstarsGandalf
Copy link

Snipaste_2024-04-06_21-27-37

@junweizeng
Copy link
Owner

@IstarsGandalf 协同过滤推荐器的更新设置了20分钟执行一次,可看下日志,是不是还没更新?
image

@IstarsGandalf
Copy link
Author

我设置成2分钟的,应该期间更新很多次了

@junweizeng
Copy link
Owner

@IstarsGandalf

可能两个原因造成:

  1. 评论数据可能存在问题
  2. 协同过滤推荐器更新过程中出错

拟解决方法:

单独调试一下下面这个函数,看下评论数据读取是否存在问题,以及更新过程中是否报错

public void updateUserBasedCollaborativeFilteringRecommendationRecommender() throws TasteException {

@IstarsGandalf
Copy link
Author

Snipaste_2024-04-07_20-21-40
沒有任何错误,对于18960这个用户还是0个推荐

@junweizeng
Copy link
Owner

@IstarsGandalf 或者你多试几个userID看看有没有成功推荐的,找下原因。我看你这个数据输入什么的好像确实都没有问题,按理来说是会有推荐结果的。不知道会不会是这个API更新了导致的,如果你后续找到是代码问题的话,欢迎提一个PR修复一下这个bug。

@junweizeng junweizeng added the bug Something isn't working label Apr 7, 2024
@IstarsGandalf
Copy link
Author

@junweizeng 感觉逻辑或者api应该是有问题了,循环了几千个用户都没有推荐结果

@junweizeng
Copy link
Owner

@IstarsGandalf 你好,后面有定位到错误或者找到解决方法?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants