muhanzhang / pytorch_DGCNN

PyTorch implementation of DGCNN
MIT License
372 stars 122 forks source link

Is it possible to use this pipeline with Dataset more than 2 classes? And how to do that? #23

Closed DL8614 closed 3 years ago

DL8614 commented 5 years ago

I have dataset with more than 2 classes and I can prepare according to discription of 'How to use own Dataset'. But what should I change so I can use it for multi label dataset?

muhanzhang commented 5 years ago

Hi, multi-class dataset is supported by DGCNN. There is no need to change. For example, the ENZYMES dataset has 6 classes. Thanks!

DL8614 commented 5 years ago

yes, It works. I can train the network on my dataset. Thanks. Morever, if I want to train the network with the features for every node, for example I have one dimensional feature called confidence score for every node, where should I add these features in Dataset, so that network can consider also features of node during training? You explained one time to use dortmund2txt.m but I cannot figure out, that How can I add to my own dataset?

muhanzhang commented 5 years ago

Hi, if your node feature is only integer labels, you can follow the README under data/ to transform your dataset to a txt file. If you have additional continuous feature, you can append it to each line (representing a node) of the txt file. Check "data/Synthie/Synthie.txt" for the format.