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)
- MemoryError for motif matirx in MHCN. HOT 1
- RSGAN中负样本生成的问题 HOT 1
- 使用GPU HOT 2
- K重交叉验证每一次结果不一样 HOT 2
- About socialmf_tf HOT 2
- DHCF模型 HOT 2
- Problem HOT 1
- NDCG计算 HOT 1
- 数据集问题 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
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.