All Projects → hwwang55 → PathCon

hwwang55 / PathCon

Licence: MIT License
Combining relational context and relational paths for knowledge graph completion

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to PathCon

NBFNet
Official implementation of Neural Bellman-Ford Networks (NeurIPS 2021)
Stars: ✭ 106 (+12.77%)
Mutual labels:  knowledge-graph, graph-neural-networks
NMN
Source code and datasets for ACL 2020 paper: Neighborhood Matching Network for Entity Alignment.
Stars: ✭ 55 (-41.49%)
Mutual labels:  knowledge-graph, graph-neural-networks
PathCon
Combining relational context and relational paths for knowledge graph completion
Stars: ✭ 29 (-69.15%)
Mutual labels:  knowledge-graph, graph-neural-networks
KGPool
[ACL 2021] KGPool: Dynamic Knowledge Graph Context Selection for Relation Extraction
Stars: ✭ 33 (-64.89%)
Mutual labels:  knowledge-graph, graph-neural-networks
ProteinGCN
ProteinGCN: Protein model quality assessment using Graph Convolutional Networks
Stars: ✭ 88 (-6.38%)
Mutual labels:  graph-neural-networks
knowledge-graph
Graph Data Visualization Demo| 图数据搜索可视化应用案例
Stars: ✭ 30 (-68.09%)
Mutual labels:  knowledge-graph
Walk-Transformer
From Random Walks to Transformer for Learning Node Embeddings (ECML-PKDD 2020) (In Pytorch and Tensorflow)
Stars: ✭ 26 (-72.34%)
Mutual labels:  graph-neural-networks
LibAUC
An End-to-End Machine Learning Library to Optimize AUC (AUROC, AUPRC).
Stars: ✭ 115 (+22.34%)
Mutual labels:  graph-neural-networks
Knowledge Graph based Intent Network
Learning Intents behind Interactions with Knowledge Graph for Recommendation, WWW2021
Stars: ✭ 116 (+23.4%)
Mutual labels:  knowledge-graph
awesome-ontology
A curated list of ontology things
Stars: ✭ 73 (-22.34%)
Mutual labels:  knowledge-graph
koza
Data transformation framework for LinkML data models
Stars: ✭ 21 (-77.66%)
Mutual labels:  knowledge-graph
ITO
Intelligence Task Ontology (ITO)
Stars: ✭ 37 (-60.64%)
Mutual labels:  knowledge-graph
skywalkR
code for Gogleva et al manuscript
Stars: ✭ 28 (-70.21%)
Mutual labels:  knowledge-graph
FCA-Map
💠 Ontology matching system based on formal concept analysis
Stars: ✭ 25 (-73.4%)
Mutual labels:  knowledge-graph
KGMiner
Knowledge Graph Miner
Stars: ✭ 37 (-60.64%)
Mutual labels:  knowledge-graph
H-GCN
[IJCAI 2019] Source code and datasets for "Hierarchical Graph Convolutional Networks for Semi-supervised Node Classification"
Stars: ✭ 103 (+9.57%)
Mutual labels:  graph-neural-networks
WhySoMuch
knowledge graph recommendation
Stars: ✭ 67 (-28.72%)
Mutual labels:  knowledge-graph
Metagraph
Metagraph是一款知识创作分享工具,不同于以往的知识创作平台,Metagraph提供了强大的内容关联能力。
Stars: ✭ 18 (-80.85%)
Mutual labels:  knowledge-graph
AutoSF
Y. Zhang, Q. Yao, J. Kwok. Bilinear Scoring Function Search for Knowledge Graph Learning. TPAMI 2022
Stars: ✭ 51 (-45.74%)
Mutual labels:  knowledge-graph
gemnet pytorch
GemNet model in PyTorch, as proposed in "GemNet: Universal Directional Graph Neural Networks for Molecules" (NeurIPS 2021)
Stars: ✭ 80 (-14.89%)
Mutual labels:  graph-neural-networks

PathCon

This repository is the Tensorflow implementation of PathCon (paper):

Relational Message Passing for Knowledge Graph Completion
Hongwei Wang, Hongyu Ren, Jure Leskovec
In Proceedings of The 27th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD 2021)

(A PyTorch implementation of PathCon can be found here)

PathCon considers relational context and relational paths of (head, tail) pair in knowledge graphs for link prediction. PathCon achieves substantial gains over state-of-the-art baselines. Below is the result of Hit@1 on the test set of FB15K, FB15K-237, WN18, WN18RR, NELL995, and DDB14 datasets for relation prediction task:

Method FB15K FB15K-237 WN18 WN18RR NELL995 DDB14
TransE 94.0 94.6 95.5 66.9 78.1 94.8
RotatE 96.7 95.1 97.9 73.5 69.1 93.4
QuatE 97.2 95.8 97.5 76.7 70.6 92.2
DRUM 94.5 90.5 95.6 77.8 64.0 93.0
PathCon 97.4 (+/-0.2) 96.4 (+/-0.1) 98.8 (+/-0.1) 95.4 (+/-0.2) 84.4 (+/-0.4) 96.6 (+/-0.1)

For more results, please refer to the original paper.

Files in the folder

  • data/
    • FB15k/
    • FB15k-237/
    • wn18/
    • wn18rr/
    • NELL995/
    • DDB14/
  • src/: implementation of PathCon

Note: We provide a cache/ folder for each dataset, which caches the pre-computed relational paths for the dataset. This folder is not required for running the code, because relational paths will be counted (and cached) when running the code if no corresponding cache file is found. If you are going to run FB15K-237 with max_path_len=3, please first download and unzip paths_3.zip from here and put all unzipped files under FB15k-237/cache/ (these files cannot be uploaded to GitHub due to the limitation on file size).

Running the code

$ python main.py

Note: The default dataset is set as WN18RR. Hyper-parameter settings for other datasets are provided in main.py.

Required packages

The code has been tested running under Python 3.6.5, with the following packages installed (along with their dependencies):

  • tensorflow == 1.12.0
  • numpy == 1.16.5
  • scipy == 1.3.1
  • sklearn == 0.21.3
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].