IDGL icon indicating copy to clipboard operation
IDGL copied to clipboard

How to use IDGL on my own dataset?

Open Riofd opened this issue 3 years ago • 4 comments

Thank you for your great work! But I have some problems when I use the code on my own dataset. Here are some details:

  1. My task is graph classification;
  2. The size of my input features is 7000×72×200: 7000 samples and each sample has 72 nodes and the input dimension of each node is 100;
  3. The dataset can be divided into 3 classes. When I set my own config, and it reported "correct = preds.eq(labels).double() RuntimeError : The size of tensor a (3) must match the size of tensor b (6240) at non-singleton dimension 1". Also I noticed that the output of the GNN is 72×3 for each sample, but it should be 3. Where should I change the code for my dataset? Thank you!

Riofd avatar Sep 16 '21 01:09 Riofd

@Riofd Thanks for your interest to our work! As for graph classification use case, you might want to refer to the text graph classification example in this repo. The main difference is in our case, we prepared a kNN graph for each text example while in your case the initial graph of each example is given.

hugochan avatar Sep 18 '21 05:09 hugochan

Hi, I wanna ask two questions: 1. How I use my own dateset(A graph, and each node is a time series data) 2. Where is the adj matrix hold, I did not find it. THANKS FOR YOUR HELP!

jiangxinke avatar Jan 19 '22 12:01 jiangxinke

Hi, I wanna ask two questions: 1. How I use my own dateset(A graph, and each node is a time series data) 2. Where is the adj matrix hold, I did not find it. THANKS FOR YOUR HELP!

@jiangxinke 1) the model was not designed for handling time series data, even though the idea of the model might be extended to time series data. 2) please check out this code on how to access adj matrix.

hugochan avatar Jan 23 '22 06:01 hugochan

@Riofd Thanks for your interest to our work! As for graph classification use case, you might want to refer to the text graph classification example in this repo. The main difference is in our case, we prepared a kNN graph for each text example while in your case the initial graph of each example is given.

Hi! I am trying to understand the example to use it for my own dataset, but the 20news data is missing from the repository. Can I download it from somewhere else?

simona-juv avatar Sep 26 '22 11:09 simona-juv

@Riofd Thanks for your interest to our work! As for graph classification use case, you might want to refer to the text graph classification example in this repo. The main difference is in our case, we prepared a kNN graph for each text example while in your case the initial graph of each example is given.

Hi! I am trying to understand the example to use it for my own dataset, but the 20news data is missing from the repository. Can I download it from somewhere else?

Hi @simona-juv , sorry for the late reply! You can download the 20news data at 20news-bydate.tar.gz.

hugochan avatar Jan 08 '23 19:01 hugochan