Comments (4)
Although the model uses all data as input, it calculates loss only from idx_train which defined in load_data.
Hope this would help.
from pygcn.
@ChrisZhangcx
Thanks for your answer !
In trainning procedure,if testing samples have edges with trainning samples ,the corresponding position in the adjacency matrix will become 1. the testing sample's feature will be involved in the trainning sample's output and in the training sample's loss.
Thank you very much!
from pygcn.
You are right. It does seem like we combine the information of both train and test data.
I try to think about this issue in a different way: we do need these edges in the adjacency matrix since our task is to give node representations according to each node's features as well as topology info of its neighbors.
By removing the relation edges between the train and test nodes (by manually masking their edges in adjacency matrix), there might occur some of the following issues:
- Change the distribution of data and features. Intuitively, we assume that both train and test data share the same distribution of the whole dataset.
- The graph is no longer fully connected. Especially we set train nodes only to 140 and the test to 1000 in this case. Some of the train nodes might even have no neighbors.
- Affect the information of the graph structure, from which we are able to extract features to further strengthen our model performance.
Thanks for your reply! I'm a starter in the graph network. Please let me know if you have any comments.
from pygcn.
@ChrisZhangcx
Thanks for your reply ,I'm a starter too.
Your answer is very reasonable .
Whether we remove the relation edges between the train and test nodes or not,can I think it's a problem of transductive reasoning or inductive reasoning?
In fact,I'm chinese too!^^^^^_^All in all,thank you very much!
from pygcn.
Related Issues (20)
- specifying modes train, validation and test HOT 1
- Where is Filter parameters in the code? HOT 1
- Hi, does pandas make the data preprocessing more simple?
- Normalization of features, batch-wise training, feature extraction
- question about the adjacency matrix HOT 2
- citeseer dataset seems doesnot work HOT 2
- Difference between TF and Pytorch version code HOT 5
- In tensor flow code you used early stopping,isn't it needed in pytorch???
- In `utils.py` line 36, wouldnt `adj = adj + (adj.T > adj)` also work? HOT 2
- Invoice node classification / meta-data extraction / single prediction with trained model
- How to do a semi-supervised learning? HOT 6
- Predicting node degree
- Question About fastmode
- Error: 'pybind11' must be installed before running the build.
- transform to other scope dataset
- Why do row normalization instead of column normalization? HOT 2
- About the dataset split HOT 3
- citeseer dataset
- Cora dataset attributes
- accuracy in the experimental results HOT 1
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 pygcn.