akaxlh / khgt Goto Github PK
View Code? Open in Web Editor NEWKHGT, AAAI 2021
KHGT, AAAI 2021
Hello I have a question about embedding of uEmbed0/iEmbed0 and UEmbedPred/IEmbedPred.
In "ours" function, why Embed0 is replaced by a random initialized EmbedPred in code line 125~126 in labcode_ml10m.py?I didn't find a description of it in the paper, and I don't understand what the motivation is for doing so.
I am confused.
Anyway, thanks of the codes. It is pretty.
你好,您这个源码里面少放了安装包的版本,使用tensorflow的一些版本来跑程序的时候,一直出错。
def GAT(self, srcEmbeds, tgtEmbeds, tgtNodes, maxNum, Qs, Ks, Vs):
QWeight = tf.nn.softmax(NNs.defineRandomNameParam([args.memosize, 1, 1], reg=True), axis=1)
KWeight = tf.nn.softmax(NNs.defineRandomNameParam([args.memosize, 1, 1], reg=True), axis=1)
VWeight = tf.nn.softmax(NNs.defineRandomNameParam([args.memosize, 1, 1], reg=True), axis=1)
Q = tf.reduce_sum(Qs * QWeight, axis=0)
K = tf.reduce_sum(Ks * KWeight, axis=0)
V = tf.reduce_sum(Vs * VWeight, axis=0)
I found above code to implement equation (3), I have 2 questions:
tf.nn.softmax(..., axis = 0)
Please excuse me if there is any misunderstanding.
作者您好!最近看了KHGT这篇论文觉得很有启发,但是在对比模型的实现上遇到了一些问题。请问能否发一份对比模型的代码,我的邮箱是[email protected]。如果可以的话,非常感谢!
Is it in the file "trn_catDict"
Hello, I have a question. In the "messagePropagate" function, why do srcNodes and tgtNodes look up their embeddings in the same embedding table?
Hi, Thank you for your quick response.
I was unable to run the code on retail dataset. (and Successfully run the code on ml10m and yelp datasets )
BTW, I have fixed the following minor issues to enable the correctness:
During the execution of
python labcode_retail.py --data retail --graphSampleN 15000 --reg 1e-1 --save_path model_name
The error pops out due to the index out of range. I think these are some issues with the dataset.
Please let me know if you could get it run.
And would you mind to sharing me the original data and data preprocessing code?
Dear author, I would like to ask you some problems in datasets
that is, the user of each dataset exceed 10000, but I found that only 10000 users in test data
For example, there are 67788 users in ML10M, but only 10000 users are chosen for test, is it reasonable?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.