Git Product home page Git Product logo

gcomb's Introduction

Code for the paper :

"GCOMB: Learning Budget-constrained Combinatorial Algorithms over Billion-sized Graphs"

Authors : Sahil Manchanda, Akash Mittal, Anuj Dhawan, Sourav Medya, Sayan Ranu, and Ambuj Singh

To appear in: NeurIPS, 2020.

Link : https://arxiv.org/abs/1903.03332

Instructions:

Each folder contains a Readme file which has the steps to run training and evaluation.

Default python version is 2.7.12.

For every other place where python 3.5.2 is used, python3 is mentioned.

Run below command to install python packages

For python2:

pip install -r requirements_python2.7.txt

For python3:

pip3 install -r requirements_python3.txt

gcomb's People

Contributors

sahilm1992 avatar gcomb avatar

Stargazers

Yixuan Leeee avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar YuanZirui avatar  avatar Hu XinYu avatar Alicia avatar  avatar Fei Gao avatar  avatar Yingdan Shi avatar xinw avatar Saurabh Sharma avatar Richard Yi avatar Sai Munikoti avatar  avatar Shinx avatar  avatar wlsh avatar  avatar Zhicheng Liang avatar Bai Yiwei avatar Haipeng Chen avatar George Panagopoulos avatar

Watchers

James Cloos avatar  avatar Sayan Ranu avatar

gcomb's Issues

Problems in training GCN

Hello, excuse me, I'm executing 'sh train_ script. sh', but there is a problem, according to the prompt, G should have no node object, but I did not get the modified training data. The following is an error prompt. I hope the author can answer it. Thank you very much.

Training on Multiple Graphs =========== 0
sh ./example_supervised.sh ./real_data/large_kite/train/_bp
--train_prefix ./real_data/large_kite/train/_bp --model graphsage_meanpool --sigmoid
2022-11-13 12:24:15.002718: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Loading training data..
num nodes 69578
num nodes 69578
Done loading training data..
Traceback (most recent call last):
File "/home/zhangxinping/.conda/envs/gcomb/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/zhangxinping/.conda/envs/gcomb/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/zhangxinping/GCOMB-master/MaxCover-20200616T101530Z-001/MaxCover/GraphSAGE-master/graphsage/supervised_train.py", line 387, in
tf.app.run()
File "/home/zhangxinping/.conda/envs/gcomb/lib/python3.7/site-packages/tensorflow/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/home/zhangxinping/.conda/envs/gcomb/lib/python3.7/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/home/zhangxinping/.conda/envs/gcomb/lib/python3.7/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "/home/zhangxinping/GCOMB-master/MaxCover-20200616T101530Z-001/MaxCover/GraphSAGE-master/graphsage/supervised_train.py", line 384, in main
train(train_data)
File "/home/zhangxinping/GCOMB-master/MaxCover-20200616T101530Z-001/MaxCover/GraphSAGE-master/graphsage/supervised_train.py", line 168, in train
context_pairs = context_pairs, mode="train", prefix=FLAGS.train_prefix)
File "/home/zhangxinping/GCOMB-master/MaxCover-20200616T101530Z-001/MaxCover/GraphSAGE-master/graphsage/minibatch.py", line 213, in init
self.adj, self.deg=self.construct_adj()
File "/home/zhangxinping/GCOMB-master/MaxCover-20200616T101530Z-001/MaxCover/GraphSAGE-master/graphsage/minibatch.py", line 281, in construct_adj
if self.G.node[nodeid]['test'] or self.G.node[nodeid]['val']:
AttributeError: 'Graph' object has no attribute 'node'

Error occurs when running train_script.sh training GCN

Hi, firstly, thanks for your opening algorithm and code, which is amazing. Something wrong occurs when I run the code and sorry I don't know how to fix it.

tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[331500] = 69578 is not in [0, 69578)
[[node embedding_lookup_2 (defined at graphsage/models.py:300) ]]


Entered in the Loop = == = == = ==
WARNING:tensorflow:From /gpfs1/home/zhicliang3/git/GCOMB/MaxCover-20200616T101530Z-001/MaxCover/GraphSAGE-master/graphsage/supervised_train.py:298: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.

W0118 18:59:31.573591 23456246036288 deprecation_wrapper.py:119] From /gpfs1/home/zhicliang3/git/GCOMB/MaxCover-20200616T101530Z-001/MaxCover/GraphSAGE-master/graphsage/supervised_train.py:298: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.

Trained Model Loading!
WARNING:tensorflow:From /home/zhicliang3/anaconda3/envs/py27/lib/python2.7/site-packages/tensorflow/python/training/saver.py:1276: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.
Instructions for updating:
Use standard file APIs to check for files with this prefix.
W0118 18:59:31.583878 23456246036288 deprecation.py:323] From /home/zhicliang3/anaconda3/envs/py27/lib/python2.7/site-packages/tensorflow/python/training/saver.py:1276: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.
Instructions for updating:
Use standard file APIs to check for files with this prefix.
INFO:tensorflow:Restoring parameters from KITE_supervisedTrainedModel_MC_marginal/model.ckpt
I0118 18:59:31.584534 23456246036288 saver.py:1280] Restoring parameters from KITE_supervisedTrainedModel_MC_marginal/model.ckpt
Trained Model Loaded!
Epoch: 0001
Traceback (most recent call last):
File "/home/zhicliang3/anaconda3/envs/py27/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/home/zhicliang3/anaconda3/envs/py27/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/gpfs1/home/zhicliang3/git/GCOMB/MaxCover-20200616T101530Z-001/MaxCover/GraphSAGE-master/graphsage/supervised_train.py", line 387, in
tf.app.run()
File "/home/zhicliang3/anaconda3/envs/py27/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/home/zhicliang3/anaconda3/envs/py27/lib/python2.7/site-packages/absl/app.py", line 303, in run
_run_main(main, args)
File "/home/zhicliang3/anaconda3/envs/py27/lib/python2.7/site-packages/absl/app.py", line 251, in _run_main
sys.exit(main(argv))
File "/gpfs1/home/zhicliang3/git/GCOMB/MaxCover-20200616T101530Z-001/MaxCover/GraphSAGE-master/graphsage/supervised_train.py", line 384, in main
train(train_data)
File "/gpfs1/home/zhicliang3/git/GCOMB/MaxCover-20200616T101530Z-001/MaxCover/GraphSAGE-master/graphsage/supervised_train.py", line 317, in train
outs = sess.run([merged, model.opt_op, model.loss, model.preds], feed_dict=feed_dict)
File "/home/zhicliang3/anaconda3/envs/py27/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 950, in run
run_metadata_ptr)
File "/home/zhicliang3/anaconda3/envs/py27/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1173, in _run
feed_dict_tensor, options, run_metadata)
File "/home/zhicliang3/anaconda3/envs/py27/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1350, in _do_run
run_metadata)
File "/home/zhicliang3/anaconda3/envs/py27/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1370, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[331500] = 69578 is not in [0, 69578)
[[node embedding_lookup_2 (defined at graphsage/models.py:300) ]]

Errors may have originated from an input operation.
Input Source operations connected to node embedding_lookup_2:
Variable/read (defined at graphsage/supervised_models.py:60)
Reshape_1 (defined at graphsage/models.py:274)

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.