Comments (10)
Hi @skydetailme,
Thanks for your interest in our work. Would you mind pointing out which file you are referring to? I think in my implementation I did not use "remove()" function but directly use indexing to modify them, e.g.
from graphcl.
Hi, thanks for the reply. Here is the link.
https://github.com/Shen-Lab/GraphCL/blob/master/unsupervised_Cora_Citeseer/aug.py
from graphcl.
@yongduosui, would you mind giving some comments on this? Thanks!
from graphcl.
@skydetailme The aim of this code is to convert to convert bidirectional edges index to unidirectional index. I just debug my code and did't find any bug. It remove the other edge index pair successfully. You can print the list and check. Thanks.
from graphcl.
@skydetailme The aim of this code is to convert to convert bidirectional edges index to unidirectional index. I just debug my code and did't find any bug. It remove the other edge index pair successfully. You can print the list and check. Thanks.
Would you mind take some minutes to read the link I posted, it explains well.
And you will find that after this iteration, index_list is not empty, those are the items accidentally jumped because of index error. Those items are not solved.
The result may right on some occasions but this code may not logically right.
from graphcl.
@skydetailme The aim of this code is to convert to convert bidirectional edges index to unidirectional index. I just debug my code and did't find any bug. It remove the other edge index pair successfully. You can print the list and check. Thanks.
Also, thanks for your help.
from graphcl.
@skydetailme The aim of this code is to convert to convert bidirectional edges index to unidirectional index. I just debug my code and did't find any bug. It remove the other edge index pair successfully. You can print the list and check. Thanks.
It seems that if the adj matrix is self-loop, this code may cause a wrong result, and the index_list is not empty.
If it's not a self-loop adj matrix, the result is right.
from graphcl.
@skydetailme Thank you for your carefulness, and I see your point. The citation net datasets happen to be without self-loop. I will read the post and give some comments after finishing my work at hand.
from graphcl.
@skydetailme Thank you for your carefulness, and I see your point. The citation net datasets happen to be without self-loop. I will read the post and give some comments after finishing my work at hand.
Thanks for your reply and contribution. This project helps a lot.
from graphcl.
Hi @skydetailme,
Sorry for the late reply that I just survive a DDL. I make certain modifications according to the blog u share https://thispointer.com/python-remove-elements-from-a-list-while-iterating/. Thanks again for your carefulness.
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.