Comments (2)
Thank you for your question.
The reason why idx_test_ind and obs_idx_train can have the same element is because they correspond to two different indexing systems.
It is a bit complicated to create a proper inductive setting, though we try to make variable meanings clear in the function comments.
Indices start with 'obs_' correspond to the node indices within the observed subgraph,
where as indices start directly with 'idx_' correspond to the node indices in the original graph
In other words, ind_ covers [0, N], and obs_idx covers [0, N_{obs}], where the 0 in these two indexing systems corresponds to different nodes.
Let me explain it in more detail.
If you look at the following line in the run_inductive function, you will see that idx_obs is meant to index the original graph and construct the observed graph.
graphless-neural-networks/train_and_eval.py
Line 324 in a24d570
This subgraph function will assign each node a new index. Later on, when creating a nodeloader in the following line, we pass obs_idx_train to the loader function to index the observed graph (subgraph).
graphless-neural-networks/train_and_eval.py
Line 336 in a24d570
In other words, obs_idx_train corresponds to the new indices created by the subgraph function.
Sorry for the confusion. I hope this helps. Please let me know if you have other questions.
from graphless-neural-networks.
Thanks a lot for your clear explanations and patient help. I believe that GLNN and your future work will be very impactful. :)
from graphless-neural-networks.
Related Issues (10)
- A paper that copy your paper [一篇论文洗稿您的论文]
- The problem of inference time HOT 2
- OGB data
- Undefined function HOT 2
- Cannot reproduce the results even with the same random seed HOT 2
- Failed to build environment HOT 1
- speed comparison HOT 3
- Error Unpickling the Cora.npz data (and others) HOT 1
- About min-cut HOT 3
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 graphless-neural-networks.