Comments (3)
It doesn't. I just checked the code and printed the list. It works as expected. Why do you think it will append two times?
from qrec.
The for iid,score in enumerate(candidates
means check the every value in candidates. While if the value is already in initial n_candidates and if the for, it will append one time again to the n_candidates. Just as the example find_k_largest(5, [1,2,3,4,5,6,7]). If the 0~K item in candidates is not the top K values, it will not affect the result.
from qrec.
Line 146 in 2a13e3d
r=K-1 which means that for the first K items in candidates, the following codes conditioned on L146 would not be excuted. So, there would not be repeated items in the recommendation list.
However, it would be better if it iterates in the range [K:]. Thanks. I will consider to modify it.
from qrec.
Related Issues (20)
- 数据集问题 HOT 1
- 关于MHCN的性能问题 HOT 1
- 关于ESRF的问题请教 HOT 6
- Visual image rendering HOT 2
- Performance comparison over different item groups HOT 3
- yelp数据集的疑问 HOT 1
- 用相同的数据集训练,设置相同的种子,相同的参数。MHCN在QRec上的表现明显优于SELFRec是什么原因啊 HOT 5
- 关于ESRF代码如何提取出 alternative neighborhood HOT 3
- KeyError: 1 HOT 8
- 更改训练集和测试集 HOT 4
- 有关新模型训练 HOT 1
- 如何配置evaluation.setup下的-predict参数 HOT 2
- 可视化结果 HOT 2
- LightGCN復現性能問題 HOT 3
- 模型CUNE_BPR运行报错 HOT 1
- Yelp数据集获取 HOT 1
- SimGCL的实现中,为什么要对扰动噪声加l2归一化呢?而且现有扰动的噪声是否太大了? HOT 1
- 关于xsimgcl噪声的一些问题,想请教大佬 HOT 2
- 许多模型在配置好参数后,运行main.py,发现会直接进入evaluate,而没有train HOT 4
- Epinions Download HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qrec.