Comments (13)
在unsupervised_TU中出现了bug,KeyError:'num_nodes'
from graphcl.
Hi @HeSasa,
Probably you need to setup the environment consistent with that in https://github.com/Shen-Lab/GraphCL/tree/master/unsupervised_TU.
from graphcl.
感谢回复!之前的问题已经解决了 ,是因为替换的数据集出了问题。但是又遇到了一个新的bug:
我print了一下edge_index,发现出现了负值:
from graphcl.
Feel it might still come from inconsistency... Would you mind sharing the environment and running script?
from graphcl.
Name Version
binutils_impl_linux-64 2.36.1
binutils_linux-64 2.36
ca-certificates 2021.10.8
certifi 2021.10.8
cycler 0.10.0
decorator 4.4.2
gcc_impl_linux-64 11.2.0
gcc_linux-64 11.2.0
joblib 1.1.0
kernel-headers_linux-64 2.6.32
kiwisolver 1.3.1
ld_impl_linux-64 2.36.1
libgcc-devel_linux-64 11.2.0
libgcc-ng 11.2.0
libgomp 11.2.0
libsanitizer 11.2.0
libstdcxx-ng 11.2.0
libzlib 1.2.11
markupsafe 2.0.1
matplotlib 3.3.4
numpy 1.19.5
openssl 1.0.2u
pip 21.3
pyparsing 2.4.7
python 3.6.2
python-dateutil 2.8.2
python_abi 3.6
pytz 2021.3
pyyaml 5.4.1
rdflib 5.0.0
readline 6.2
requests 2.26.0
scikit-learn 0.24.2
scipy 1.5.4
seaborn 0.11.2
setuptools 49.6.0
six 1.16.0
sqlite 3.13.0
sysroot_linux-64 2.12
threadpoolctl 3.0.0
tk 8.5.18
torch 1.6.0
torch-geometric 2.0.1
torch-scatter 2.0.6
torch-sparse 0.6.9
torchvision 0.7.0
tqdm 4.62.3
urllib3 1.26.7
wheel 0.37.0
xz 5.2.5
yacs 0.1.8
zlib 1.2.11
This is may environment, and I run "./go.sh 2 TEXT random2".
from graphcl.
That's awesome you use the latest torch-geometric==2... Our program was developed earlier so probably torch-geometric==1.6.0 is better as stated in readme (https://github.com/Shen-Lab/GraphCL/tree/master/unsupervised_TU).
from graphcl.
I will try again, thank you for your answer.
from graphcl.
I change my environment to torch-geometric==1.6.0、pytorch==1.6.0,but still have same error.
from graphcl.
Can you run the script in https://github.com/fanyun-sun/InfoGraph/tree/master/unsupervised? Our code base is built on it so wondering whether you can successfully run this.
from graphcl.
Hi! I got the same problem. How did you solve it?
from graphcl.
Replace line188 and 209 "for key in self.data.keys:" with "for key in self.slices.keys():" in aug.py. For me, this problem can avoided. @ZsZsZs25
from graphcl.
Thanks a lot! I'll try it!
from graphcl.
@Niuchx Sorry for the late reply, and thank you very much!
from graphcl.
Related Issues (20)
- About Unsupervised_Cora_Citeseer HOT 1
- Different result about Transfer Learning HOT 2
- ValueError: `MessagePassing.propagate` only supports `torch.LongTensor` of shape `[2, num_messages]` or `torch_sparse.SparseTensor` for argument `edge_index`. HOT 1
- Question about GraphCL HOT 1
- Question About Sungraph HOT 1
- Question about data augmentation HOT 1
- Question about Unsupervised_TU HOT 4
- Unsupervised learning with self created dataset HOT 1
- graph classification HOT 1
- 问题请教 HOT 1
- A question about Semisupervised_TU in pre_training HOT 1
- 运行过程未结束就‘Early stopping!’ HOT 1
- Question about Unsupervised_TU experiments details HOT 4
- Question about Unsupervised-TU ''test'' and ''val'' HOT 1
- How to use for Graph Clustering. HOT 1
- information about the datasets HOT 1
- Question about cortex_DIM in net_infomax.py of semisupervised_TU/finetuning HOT 2
- File "/home/test02/code/GraphCL-master/semisupervised_TU/pre-training/feature_expansion.py", line 27, in __init__ super(FeatureExpander, self).__init__('add', 'source_to_target') TypeError: __init__() takes from 1 to 2 positional arguments but 3 were given HOT 1
- Dateset Error HOT 2
- Dataset Download Fail HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphcl.