Code Monkey home page Code Monkey logo

hgsl's Introduction

HGSL

Source code of AAAI submission "Heterogeneous Graph Structure Learning for Graph Neural Networks"

Requirements

Python Packages

  • Python >= 3.6.8
  • Pytorch >= 1.3.0

GPU Memmory Requirements

  • ACM >= 8G
  • DBLP >=5G
  • Yelp >=3G

Usage

Take DBLP dataset as an example: python train.py --dataset='dblp'

FAQ

Code of preprocessing data?

Please kindly note that the data is originally preprocessed by the GTN project (https://github.com/seongjunyun/Graph_Transformer_Networks).

I received quite a lot emails asking me about the dataset. I will not respond to them anymore as I cannot provide the code.

How to generate semantic embeddings?

The semantic embeddings, i.e. $\mathcal{Z}$ in the paper, are generated by metapath2vec algorithm. Users may refer to https://github.com/dmlc/dgl/tree/master/examples/pytorch/metapath2vec for an implementation.

hgsl's People

Contributors

andyjzhao avatar

Stargazers

MoMo avatar Yongxing Cai avatar  avatar Electric Prophet avatar aubrey avatar  avatar  avatar  avatar Cautiousnut avatar Lideng Cai avatar  avatar  avatar  avatar lwl avatar Luis Berlioz avatar xinyizhou avatar hipppppo avatar  avatar Jieli Zhou avatar  avatar Zhaoxiang Zhang avatar  avatar Tang... avatar Kilada avatar Winona avatar  avatar tupham3107 avatar  avatar  avatar  avatar  avatar  avatar  avatar dlmult avatar Kaixuan Chen avatar  avatar Michael Du avatar Eddy Wang avatar  avatar  avatar Ran Ran avatar Rango avatar  avatar Kanghoon Yoon avatar zhuolin li avatar Stray in 2001 avatar  avatar ssui.liu avatar  avatar Ling Yang avatar Quan Yuhan avatar xiaosonggege avatar  avatar  avatar  avatar  avatar  avatar Kekun HU avatar  avatar  avatar Denis Sidorenko avatar Huii avatar  avatar wxwmd avatar WzhRslh avatar elephant0613 avatar Jianwen Chen avatar  avatar Hamming avatar  avatar Bozhen Hu avatar  avatar HL avatar  avatar NLNR avatar LeonLIU avatar Olivia-fsm avatar MageeWang avatar Salamander avatar Lei Sang avatar  avatar  avatar Linhao Luo (Raymond) avatar  avatar  avatar  avatar Chris Tian avatar Huang-Cheng Chou avatar kasa avatar 安壑 avatar  avatar Ce Li avatar Wang Bomin avatar  avatar Chaoyang avatar Yu Le avatar Clark Mingxuan Ju avatar wuwenjie avatar Seder(方进) avatar  avatar

Watchers

 avatar zhousheng avatar  avatar

hgsl's Issues

semantic embeddings

I wondering how did you get the semantic embeddings Z for each metapath Pm,such as the apcpa_emb.pkl in dblp directory

Threshold Setting and the labeled data

Dear Authors:
I have two questions about the experiment.
(1) Given a new dataset, how to set the threshold for different graph construction?
(2) In the experimental results, why the number of train + val + test set is not equal to the number of nodes? Are the test data randomly selected?
Thanks :)

EarlyStopping counter?

Hello,
excuse me, i have a question to ask for your help
when i ran the 'train.py' in my pycharm, i found each Epoch follewed by 'EarlyStopping counter:...' ,what is that mean?

A question about DBLP dataset

Dear HGSL authors,

I find that the DBLP dataset you used in your paper does not include term nodes.
截屏2022-02-27 23 16 15
Is there any reason to do so? I think there are about 8000 term nodes in DBLP dataset used by HAN, MAGNN and other paper as well. I am a little bit confused.

Look forward to your reply!

How to generate semantic embedding matrices?

Dear Jianan Zhao, I have run your code but I do not know how to generate Semantic Embedding Matrices, could you please tell me how to constructs the semantic embedding matrices Z by metapath-based node embeddings from M metapaths?

通道注意力权重

你好,请问论文中的通道注意力权重是自己设置的吗,比如最后您HGSL.py中代码中的
【1,1,10】
self.overall_g_agg[r] = GraphChannelAttLayer(3, [1, 1, 10])

通道注意力权重

您好,请问论文中的通道注意力权重是自己设置的吗,比如最后您HGSL.py中代码中的
【1,1,10】self.overall_g_agg[r] = GraphChannelAttLayer(3, [1, 1, 10])
如果最后整合三个图的权重需要自己设置,那么
self.sg_agg[r] = GraphChannelAttLayer(len(cf.mp_list))
和self.fg_agg[r] = GraphChannelAttLayer(3)的权重也需要自己手动设置吗?
拜托看到了请回复下,谢谢谢谢!!!

A question about yelp data set

Hello, I have read your paper and am very interested. The node features of the yelp data set are constructed by the word bag vector of keywords, but I don’t know where the keywords in the data set are. I hope to find the original (with key Word) data set, can you help me?
There are where I can find the current data source:
https://github.com/librahu/HeGAN
https://github.com/Andy-Border/HGSL
https://github.com/dingdanhao110/Conch
https://github.com/librahu/HIN-Datasets-for-Recommendation-and-Network-Embedding

but now I can not find the keyword in business (or feature).....\thanks a lot!

Adaption

Your job is great. I would like to ask if this method is suitable for multimodal sentiment analysis?(There exist three modality, eg Audio, text and video.And the data appear heterogeneous nature)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.