Coder Social home page Coder Social logo

graph-com / surel Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 4.0 47 KB

[VLDB'22] SUREL is a novel walk-based computation framework for efficient subgraph-based graph representation learning.

License: BSD 2-Clause "Simplified" License

Python 45.20% C 54.80%
graph-representation-learning open-graph-benchmark

surel's People

Contributors

veritasyin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

surel's Issues

Stucked at Compiling `surel_gacc` on Macbook M1 chip

Hi there, when trying to run this repo at MacBook Pro (13-inch, M1, 2020), I found some obstacles:

  1. failed at recover conda environment using conda env create -f environment.yml
    image
  2. failed at compiling surel_gacc
    image
    Hope to get help with these issues. Can we run SUREL without c acceleration?

Question about epoch and batch_size

Hi, what is B_size in main.py, does it mean training batch_size? How can I get an epoch time(an epoch means all training edges have been traversed). Can I get it from num_train_edges / B_size * time_of_a_B_size ?

Support for custom datasets ?

Hi,

I was wondering if SUREL currently supports testing with custom datasets such as Planetoid or attributed datasets.

Thanks and Regards,
Shweta Ann Jacob

Error: undefined symbol PyArray_XDECREF_ERR

Hi,

I am not able to run the model as I encounter some errors.

First, when running cd surel_gacc;python3 setup.py install, I get the following warnings:

graph_acc.c: In function ‘np_sample’:
graph_acc.c:344:5: warning: implicit declaration of function ‘PyArray_XDECREF_ERR’; did you mean ‘PyArray_XDECREF’? [-Wimplicit-function-declaration]
PyArray_XDECREF_ERR(oarr);
^~~~~~~~~~~~~~~~~~~
PyArray_XDECREF
At top level:
graph_acc.c:92:13: warning: ‘f_format’ defined but not used [-Wunused-function]
static void f_format(const npy_intp *dims, int *CArrays) {
^~~~~~~~

Then, running the model fails with:

(surel) erossi@erossi-research-vm:~/SUREL$ python main.py --dataset ogbl-citation2 --metric mrr --num_step 4 --num_walk 100
Traceback (most recent call last):
File "/home/erossi/SUREL/main.py", line 7, in
from surel_gacc import run_sample
ImportError: /opt/conda/envs/surel/lib/python3.9/site-packages/SUREL_GAcc-1.0-py3.9-linux-x86_64.egg/surel_gacc.cpython-39-x86_64-linux-gnu.so: undefined symbol: PyArray_XDECREF_ERR

Any advice on what I may be missing?

Support for GNN as underlying model?

Hi,

I was trying to run the SUREL algorithm with a GNN Net model. However, I could not see any GNN model architecture being supported in models.py/layers.py file. Could you please let me know if there is currently support for using a GNN model as the underlying training Net?

Thanks in advance,
Paul

Multilink support

Hello, does SUREL support multilink input? I have several types of edges (for example, financial link and relative link) and I'd like to use them all without relying on the edge weight. Is it possible?

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.