DHGNN source code for IJCAI19 paper: "Dynamic Hypergraph Neural Networks"

iMoonLab, updated 🕥 2022-12-08 02:37:07

DHGNN: Dynamic Hypergraph Neural Networks

Created by Jianwen Jiang, Yuxuan Wei, Yifan Feng, Jingxuan Cao and Yue Gao from Tsinghua University and Xiamen University. framework

Introduction

This work has been published in IJCAI 2019.
Dynamic Hypergraph Neural Networks (DHGNN) is a kind of neural networks modeling dynamically evolving hypergraph structures, which is composed of the stacked layers of two modules: dynamic hypergraph construction (DHG) and hypergrpah convolution (HGC). Considering initially constructed hypergraph is probably not a suitable representation for data, the DHG module dynamically updates hypergraph structure on each layer. Then hypergraph convolution is introduced to encode high-order data relations in a hypergraph structure. The HGC module includes two phases: vertex convolution and hyperedge convolution, which are designed to aggregate feature among vertices and hyperedges, respectively. We have evaluated our method on standard datasets, the Cora citation network and Microblog dataset. Detailed introduction can be found in the original paper.
In this repository, we release the code for train and test DHGNN on Cora citation dataset.

Citation

@inproceedings{Jiang2019Dynamic, title={Dynamic Hypergraph Neural Networks}, author={Jianwen Jiang, Yuxuan Wei, Yifan Feng, Jingxuan Cao and Yue Gao}, booktitle={Proceedings of International Joint Conferences on Artificial Intelligence}, page={2635-2641}, year={2019} }

Installation

The code has been tested with Python 3.6, CUDA 9.0 on Ubuntu 16.04. GPU is needed to run the code. You can install all the requirements by pip install -r requirements.txt.
Requirements list: - alabaster==0.7.10 - asn1crypto==0.24.0 - astroid==1.6.3 - astropy==3.0.2 - attrs==18.1.0 - Babel==2.5.3 - backcall==0.1.0 - backports.shutil-get-terminal-size==1.0.0 - beautifulsoup4==4.6.0 - bitarray==0.8.1 - bkcharts==0.2 - blaze==0.11.3 - bleach==2.1.3 - bokeh==0.12.16 - boto==2.48.0 - Bottleneck==1.2.1 - certifi==2018.4.16 - cffi==1.11.5 - chardet==3.0.4 - click==6.7 - cloudpickle==0.5.3 - clyent==1.2.2 - colorama==0.3.9 - conda==4.5.4 - conda-build==3.10.5 - conda-verify==2.0.0 - contextlib2==0.5.5 - cryptography==2.2.2 - cycler==0.10.0 - Cython==0.28.2 - cytoolz==0.9.0.1 - dask==0.17.5 - datashape==0.5.4 - decorator==4.3.0 - distributed==1.21.8 - docutils==0.14 - entrypoints==0.2.3 - et-xmlfile==1.0.1 - fastcache==1.0.2 - filelock==3.0.4 - Flask==1.0.2 - Flask-Cors==3.0.4 - gevent==1.3.0 - glob2==0.6 - gmpy2==2.0.8 - greenlet==0.4.13 - h5py==2.7.1 - heapdict==1.0.0 - html5lib==1.0.1 - idna==2.6 - imageio==2.3.0 - imagesize==1.0.0 - ipdb==0.12.3 - ipykernel==4.8.2 - ipython==6.4.0 - ipython-genutils==0.2.0 - ipywidgets==7.2.1 - isort==4.3.4 - itsdangerous==0.24 - jdcal==1.4 - jedi==0.12.0 - jieba==0.39 - Jinja2==2.10 - jsonschema==2.6.0 - jupyter==1.0.0 - jupyter-client==5.2.3 - jupyter-console==5.2.0 - jupyter-core==4.4.0 - jupyterlab==0.32.1 - jupyterlab-launcher==0.10.5 - kiwisolver==1.0.1 - lazy-object-proxy==1.3.1 - llvmlite==0.23.1 - locket==0.2.0 - lxml==4.2.1 - MarkupSafe==1.0 - matplotlib==2.2.2 - mccabe==0.6.1 - mistune==0.8.3 - mkl-fft==1.0.0 - mkl-random==1.0.1 - more-itertools==4.1.0 - mpmath==1.0.0 - msgpack-python==0.5.6 - multipledispatch==0.5.0 - navigator-updater==0.2.1 - nbconvert==5.3.1 - nbformat==4.4.0 - networkx==1.11 - nltk==3.3 - nose==1.3.7 - notebook==5.5.0 - numba==0.38.0 - numexpr==2.6.5 - numpy==1.14.3 - numpydoc==0.8.0 - odo==0.5.1 - olefile==0.45.1 - openpyxl==2.5.3 - packaging==17.1 - pandas==0.23.0 - pandocfilters==1.4.2 - parso==0.2.0 - partd==0.3.8 - path.py==11.0.1 - pathlib2==2.3.2 - patsy==0.5.0 - pep8==1.7.1 - pexpect==4.5.0 - pickleshare==0.7.4 - Pillow==5.1.0 - pkginfo==1.4.2 - pluggy==0.6.0 - ply==3.11 - prompt-toolkit==1.0.15 - psutil==5.4.5 - ptyprocess==0.5.2 - py==1.5.3 - pycodestyle==2.4.0 - pycosat==0.6.3 - pycparser==2.18 - pycrypto==2.6.1 - pycurl==7.43.0.1 - pyflakes==1.6.0 - Pygments==2.2.0 - pylint==1.8.4 - pyodbc==4.0.23 - pyOpenSSL==18.0.0 - pyparsing==2.2.0 - PySocks==1.6.8 - pytest==3.5.1 - pytest-arraydiff==0.2 - pytest-astropy==0.3.0 - pytest-doctestplus==0.1.3 - pytest-openfiles==0.3.0 - pytest-remotedata==0.2.1 - python-dateutil==2.7.3 - pytz==2018.4 - PyWavelets==0.5.2 - PyYAML==3.12 - pyzmq==17.0.0 - QtAwesome==0.4.4 - qtconsole==4.3.1 - QtPy==1.4.1 - requests==2.18.4 - rope==0.10.7 - ruamel-yaml==0.15.35 - scikit-image==0.13.1 - scikit-learn==0.19.1 - scipy==1.1.0 - seaborn==0.8.1 - Send2Trash==1.5.0 - simplegeneric==0.8.1 - singledispatch==3.4.0.3 - six==1.11.0 - snowballstemmer==1.2.1 - sortedcollections==0.6.1 - sortedcontainers==1.5.10 - Sphinx==1.7.4 - sphinxcontrib-websupport==1.0.1 - spyder==3.2.8 - SQLAlchemy==1.2.7 - statsmodels==0.9.0 - sympy==1.1.1 - tables==3.4.3 - tblib==1.3.2 - terminado==0.8.1 - testpath==0.3.1 - thop==0.0.31.post1909230639 - toolz==0.9.0 - torch==0.4.1 - torchvision==0.2.1 - tornado==5.0.2 - traitlets==4.3.2 - typing==3.6.4 - unicodecsv==0.14.1 - urllib3==1.22 - wcwidth==0.1.7 - webencodings==0.5.1 - Werkzeug==0.14.1 - widgetsnbextension==3.2.1 - wrapt==1.10.11 - xlrd==1.1.0 - XlsxWriter==1.0.4 - xlwt==1.3.0 - zict==0.1.3

Usage

Data Preparation

Github repo of - planetoid (Zhilin Yang, William W. - Cohen, Ruslan Salakhutdinov, Revisiting Semi-Supervised Learning with Graph Embeddings, ICML 2016) provided a preprocessed Cora dataset and a fixed splitting. After downloading the Cora dataset, put it - under path $data_root/$citation_root, where $data_root and $citation_root is configured - in config/config.yaml. Make sure to edit these two properties of configuration before - running the code. - ### Train and Test Model You can run the model by the following command: shell python train.py --gpu_id $GPU_ID --model_version DHGNN_v1

License

Our code is released under MIT License (see LICENSE file for details).

Issues

Bump certifi from 2018.4.16 to 2022.12.7

opened on 2022-12-08 02:37:06 by dependabot[bot]

Bumps certifi from 2018.4.16 to 2022.12.7.

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/iMoonLab/DHGNN/network/alerts).

Bump pillow from 5.1.0 to 9.3.0

opened on 2022-11-22 02:41:35 by dependabot[bot]

Bumps pillow from 5.1.0 to 9.3.0.

Release notes

Sourced from pillow's releases.

9.3.0

https://pillow.readthedocs.io/en/stable/releasenotes/9.3.0.html

Changes

... (truncated)

Changelog

Sourced from pillow's changelog.

9.3.0 (2022-10-29)

  • Limit SAMPLESPERPIXEL to avoid runtime DOS #6700 [wiredfool]

  • Initialize libtiff buffer when saving #6699 [radarhere]

  • Inline fname2char to fix memory leak #6329 [nulano]

  • Fix memory leaks related to text features #6330 [nulano]

  • Use double quotes for version check on old CPython on Windows #6695 [hugovk]

  • Remove backup implementation of Round for Windows platforms #6693 [cgohlke]

  • Fixed set_variation_by_name offset #6445 [radarhere]

  • Fix malloc in _imagingft.c:font_setvaraxes #6690 [cgohlke]

  • Release Python GIL when converting images using matrix operations #6418 [hmaarrfk]

  • Added ExifTags enums #6630 [radarhere]

  • Do not modify previous frame when calculating delta in PNG #6683 [radarhere]

  • Added support for reading BMP images with RLE4 compression #6674 [npjg, radarhere]

  • Decode JPEG compressed BLP1 data in original mode #6678 [radarhere]

  • Added GPS TIFF tag info #6661 [radarhere]

  • Added conversion between RGB/RGBA/RGBX and LAB #6647 [radarhere]

  • Do not attempt normalization if mode is already normal #6644 [radarhere]

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/iMoonLab/DHGNN/network/alerts).

关于超边集merge的一些疑问

opened on 2022-09-26 07:27:42 by 280777510

作者您好,阅读论文后发现你们关于动态构建超图网络的想法非常酷,看了文章后深受启发。有两个问题 1.在微博情感分析任务中,有三个模态,分别是文本,图像和表情,文中你您提出构建三个超边集来对应三个模态构成的超边,然后再merge这个三个超边集,这个merge是指在列维度上concate起来吗?例如第一模态超边集大小为10,第二模态20,第三模态30,最后形成的大超边集是,N个结点*60超边?如果是上面这个想法,后面的特征聚合该如何实现? 2.使用DHGNN这篇文章中,在每一次聚类时候簇的个数,簇内结点个数,knn每个邻居结点个数,目标结点u选择周围最近簇的个数,这都是预先设置好了,应用时候该如何确定最佳设定这些个值?

Bump nbconvert from 5.3.1 to 6.5.1

opened on 2022-08-23 18:01:18 by dependabot[bot]

Bumps nbconvert from 5.3.1 to 6.5.1.

Release notes

Sourced from nbconvert's releases.

Release 6.5.1

No release notes provided.

6.5.0

What's Changed

New Contributors

Full Changelog: https://github.com/jupyter/nbconvert/compare/6.4.5...6.5

6.4.3

What's Changed

New Contributors

Full Changelog: https://github.com/jupyter/nbconvert/compare/6.4.2...6.4.3

6.4.0

What's Changed

New Contributors

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/iMoonLab/DHGNN/network/alerts).

Bump mistune from 0.8.3 to 2.0.3

opened on 2022-07-29 23:01:07 by dependabot[bot]

Bumps mistune from 0.8.3 to 2.0.3.

Release notes

Sourced from mistune's releases.

Version 2.0.2

Fix escape_url via lepture/mistune#295

Version 2.0.1

Fix XSS for image link syntax.

Version 2.0.0

First release of Mistune v2.

Version 2.0.0 RC1

In this release, we have a Security Fix for harmful links.

Version 2.0.0 Alpha 1

This is the first release of v2. An alpha version for users to have a preview of the new mistune.

Version 0.8.4

  • Support an escaped pipe char in a table cell. #150
  • Fix ordered and unordered list. #152
  • Fix spaces between = in HTML tags
  • Add max_recursive_depth for list and blockquote.
  • Fix fences code block.
Changelog

Sourced from mistune's changelog.

Changelog

Here is the full history of mistune v2.

Version 2.0.4


Released on Jul 15, 2022
  • Fix url plugin in <a> tag
  • Fix * formatting

Version 2.0.3

Released on Jun 27, 2022

  • Fix table plugin
  • Security fix for CVE-2022-34749

Version 2.0.2


Released on Jan 14, 2022

Fix escape_url

Version 2.0.1

Released on Dec 30, 2021

XSS fix for image link syntax.

Version 2.0.0


Released on Dec 5, 2021

This is the first non-alpha release of mistune v2.

Version 2.0.0rc1

Released on Feb 16, 2021

Version 2.0.0a6


</tr></table> 

... (truncated)

Commits
  • 3f422f1 Version bump 2.0.3
  • a6d4321 Fix asteris emphasis regex CVE-2022-34749
  • 5638e46 Merge pull request #307 from jieter/patch-1
  • 0eba471 Fix typo in guide.rst
  • 61e9337 Fix table plugin
  • 76dec68 Add documentation for renderer heading when TOC enabled
  • 799cd11 Version bump 2.0.2
  • babb0cf Merge pull request #295 from dairiki/bug.escape_url
  • fc2cd53 Make mistune.util.escape_url less aggressive
  • 3e8d352 Version bump 2.0.1
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/iMoonLab/DHGNN/network/alerts).

Bump distributed from 1.21.8 to 2021.10.0

opened on 2022-07-15 21:59:16 by dependabot[bot]

Bumps distributed from 1.21.8 to 2021.10.0.

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/iMoonLab/DHGNN/network/alerts).
iMoon: Intelligent Media and Cognition Group
GitHub Repository

graph-embedding nerual-network pytorch