Forschungsprojekt-Informatik / CompGCN

ICLR 2020: Composition-Based Multi-Relational Graph Convolutional Networks
Apache License 2.0
0 stars 0 forks source link

CompGCN

Composition-Based Multi-Relational Graph Convolutional Networks

Overview of CompGCN ...

Given node and relation embeddings, CompGCN performs a composition operation φ(·) over each edge in the neighborhood of a central node (e.g. Christopher Nolan above). The composed embeddings are then convolved with specific filters WO and WI for original and inverse relations respectively. We omit self-loop in the diagram for clarity. The message from all the neighbors are then aggregated to get an updated embedding of the central node. Also, the relation embeddings are transformed using a separate weight matrix. Please refer to the paper for details.

Dependencies

We evaluated the CompGCN repository with the following configurations.

pyTorch 1.4, Python 3.x, <=3.7, CPU

pyTorch 1.13.1, Python 3.9, CPU

Extracting Loss and Valid MRR values from a log

The script extractLossAndMRR.sh takes the file name as argument. See the example below

sh extractLossAndMRR.sh -f=TransE_Corr_codex_s_with_GCN_log

This will create a csv File called csv_TransE_Corr_codex_s_with_GCN_log which contains the results. Keep in mind, that the parameter only accepts filenames, not paths, so the log must be in the same folder as the script.

Dataset:

Training model: