"DHSampling: Diversity-based Hyperedge Sampling in GNN Learning with Application to Medical Image Classification", Workshop on MLMI, MICCAI 2024, [Jiameng Liu, Furkan Pala, Islem Rekik, and Dinggang Shen]
-
Clone this repo and install corresponding requirement in
requirements.txtgit clone https://github.com/basiralab/DHSampling.gitpip install -r requirements
We train and validate our proposed DHSampling on two publicly available MedMNIST data (i.e.,OrganCMNIST, OrganSMNIST). For reproducing the code, you need to download the MedMNIST data and convert to Graph as following:
-
pip install medmnist- Download OrganCMNIST and OrganSMNIST data according to this repo
-
Data preprocess for MedMNIST dataset
python ./DataPrepare/Process.py --medmnist_origin /folder/to/original/medmnist --medmnist_target /folder/to/processed/data -
Convert processed data to graph
python ./DataPrepare/GraphConstruction.py --medmnist_npy /folder/to/processed/data --medmnist_garph /folder/to/save/graph -
Copy corresponding converted graph into
./GCN/input,./GAT/input
- Script for DHSampling on
OrganCMNISTbased onGCN- Change
file_folder=organcin file./GCN/src/parse.py sh ./run/OrganCMNIST_GCN.sh
- Change
- Script for DHSampling on
OrganSMNISTbased onGCN- Change
file_folder=organsin file./GCN/src/parse.py sh ./run/OrganSMNIST_GCN.sh
- Change
- Script for DHSampling on
OrganCMNISTbased onGAT- Change
file_folder=organcin file./GAT/src/parse.py sh ./run/OrganCMNIST_GAT.sh
- Change
- Script for DHSampling on
OrganSMNISTbased onGAT- Change
file_folder=organsin file./GAT/src/parse.py sh ./run/OrganSMNIST_GAT.sh
- Change
This implementation is highly inspired by ClusterGCN in this Repo
Copyright IDEA Lab, School of Biomedical Engineering, ShanghaiTech University, Shanghai, China. & BASIRA Lab, Department of Computing, Imperical College London
Licensed under the the GPL (General Public License);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Repo for Diversity-based Hyperedges Sampling in GNN Learning
Contact: JiamengLiu.PRC@gmail.com
