prehash's People
Forkers
qianrenjian goldminer09 caoyang13 zhouyonglong rutgerswiselab kiminh alex1992on chenglongcui crystal22 sung-lin jin-lu-sprehash's Issues
代码里算ndcg 为啥用的是split_l 而不是 split_p?
if metric.startswith('ndcg@'):
max_k = max([len(d) for d in split_l])
k_data = np.array([(list(d) + [0] * max_k)[:max_k] for d in split_l])
best_rank = -np.sort(-k_data, axis=1)
best_dcg = np.sum(best_rank[:, :k] / np.log2(np.arange(2, k + 2)), axis=1)
best_dcg[best_dcg == 0] = 1
dcg = np.sum(k_data[:, :k] / np.log2(np.arange(2, k + 2)), axis=1)
ndcgs = dcg / best_dcg
evaluations.append(np.average(ndcgs))
Wide&Deep 和 Wide&DeepPreHash 特征不一致?
看了下论文里的代码,作者在测试Wide&Deep 和 Wide&DeepPreHash的时候,Wide&Deep好像没有加 itemID和userID的特征,想问下,对比测试的时候也是这样嘛
关于anchor user选择的问题
在PrehashDP.py中提到了4种选择anchor user的方式。分别是1.随机选择;2.选择点击最多的用户;3.kmeans;4.jaccard
1,2两种方式,都只得到了k个anchor user
3,4是将用户分到k个cluster中,这是不是认为每个user都是anchor user了?
那么在经过prehash分桶后,每个用户就固定只得到1个桶的向量作为它的hash user vector了吗?
prehash hash部分的hash layer和tree layer的关系是?
parser.add_argument('--hash_layers', type=str, default='[32]',
help='MLP layer sizes of hash')
parser.add_argument('--tree_layers', type=str, default='[64]',
help='Number of branches in each level of the hash tree')
想请问一下,这里的tree layer和hash layer在Hierarchical Hash中的哪部分,作用是什么?感觉论文中并没有详细介绍(也可能是我没看到)。可以麻烦在详细讲解一下吗?谢谢
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.