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)