Skip to content

Commit 137a4dc

Browse files
committed
version 0.15
1 parent 928e6f1 commit 137a4dc

33 files changed

+774
-1216
lines changed

GCNSI_source_prediction.png

-120 KB
Binary file not shown.

GraphSL.egg-info/PKG-INFO

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Metadata-Version: 2.1
22
Name: GraphSL
3-
Version: 0.14
3+
Version: 0.15
44
Summary: Graph Source Localization Approaches and Benchmark Datasets
55
Home-page: https://github.com/xianggebenben/GraphSL
6-
Download-URL: https://github.com/xianggebenben/GraphSL/archive/refs/tags/v.0.13.tar.gz
6+
Download-URL: https://github.com/xianggebenben/GraphSL/archive/refs/tags/v.0.15.tar.gz
77
Author: Junxiang Wang
88
Author-email: junxiang.wang@alumni.emory.edu
99
License: MIT
@@ -186,7 +186,7 @@ pred = (pred >= thres)
186186
visualize_source_prediction(adj,pred[:,0],train_dataset[0][:,0].numpy(),save_dir=curr_dir,save_name="IVGD_source_prediction")
187187

188188
# test IVGD
189-
metric = ivgd.test(test_dataset, diffusion_model, ivgd_model, thres)
189+
metric = ivgd.test(adj, test_dataset, diffusion_model, ivgd_model, thres)
190190
print(f"test acc: {metric.acc:.3f}, test pr: {metric.pr:.3f}, test re: {metric.re:.3f}, test f1: {metric.f1:.3f}, test auc: {metric.auc:.3f}")
191191

192192
# SLVAE
@@ -240,3 +240,5 @@ Version 0.12 adds the datasets downloader.
240240
Version 0.13 adds the visualization of source predictions.
241241

242242
Version 0.14 uses the num_thres (i.e. number of thresholds to try) instead of specifying the thres_list (i.e. threshold list) for LPSI, GCNSI, IVGD and SLVAE. Moreover, GCNSI, IVGD and SLVAE are improved to run on CUDA if applicable.
243+
244+
Version 0.15 makes all methods run on CUDA if applicable, replaces the diffusion model of IVGD and the encoder of SLVAE, and revises the generation of diffusion.

GraphSL.egg-info/SOURCES.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ LICENSE
22
README.md
33
setup.cfg
44
setup.py
5-
GraphSL/Evaluation.py
65
GraphSL/Prescribed.py
76
GraphSL/__init__.py
87
GraphSL/utils.py
@@ -17,14 +16,9 @@ GraphSL/GNN/GCNSI/main.py
1716
GraphSL/GNN/GCNSI/model.py
1817
GraphSL/GNN/IVGD/__init__.py
1918
GraphSL/GNN/IVGD/correction.py
20-
GraphSL/GNN/IVGD/earlystopping.py
21-
GraphSL/GNN/IVGD/i_deepis.py
19+
GraphSL/GNN/IVGD/diffusion_model.py
2220
GraphSL/GNN/IVGD/main.py
23-
GraphSL/GNN/IVGD/preprocessing.py
24-
GraphSL/GNN/IVGD/training.py
2521
GraphSL/GNN/IVGD/validity_net.py
26-
GraphSL/GNN/IVGD/model/MLP.py
27-
GraphSL/GNN/IVGD/model/__init__.py
2822
GraphSL/GNN/SLVAE/__init__.py
2923
GraphSL/GNN/SLVAE/main.py
3024
GraphSL/GNN/SLVAE/model.py

GraphSL/GNN/IVGD/diffusion_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(self, hidden_dim=32, num_layers=3, d=2):
6060
"""
6161
super(I_GCN, self).__init__()
6262
self.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
63-
self.iter_num = 10 # Number of iterations for fixed-point iteration in backward pass
63+
self.iter_num = 5 # Number of iterations for fixed-point iteration in backward pass
6464
self.d = d # Number of diffusion steps to consider in feature construction
6565

6666
# Define the input layer with specified dimensions

IVGD_source_prediction.png

-126 KB
Binary file not shown.

I_GCN.py

Lines changed: 0 additions & 154 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,5 @@ Version 0.12 adds the datasets downloader.
215215
Version 0.13 adds the visualization of source predictions.
216216

217217
Version 0.14 uses the num_thres (i.e. number of thresholds to try) instead of specifying the thres_list (i.e. threshold list) for LPSI, GCNSI, IVGD and SLVAE. Moreover, GCNSI, IVGD and SLVAE are improved to run on CUDA if applicable.
218+
219+
Version 0.15 makes all methods run on CUDA if applicable, replaces the diffusion model of IVGD and the encoder of SLVAE, and revises the generation of diffusion.

SLVAE_source_prediction.png

-122 KB
Binary file not shown.

baseline.py

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)