@@ -34,23 +34,48 @@ folder on a strict "as is" basis, without warranties or conditions of any kind.
3434Also, these implementations may not be compatible with certain TensorFlow
3535versions (such as 2.0 or above) or Python versions.
3636
37+ More details can be found in our
38+ [ paper] ( https://papers.nips.cc/paper/9076-graph-agreement-models-for-semi-supervised-learning.pdf ) ,
39+ [ supplementary material] ( https://papers.nips.cc/paper/9076-graph-agreement-models-for-semi-supervised-learning-supplemental.zip ) ,
40+ [ slides] ( https://drive.google.com/open?id=1tWEMoyrbLnzfSfTfYFi9eWgZWaPKF3Uu ) or
41+ [ poster] ( https://drive.google.com/file/d/1BZNR4B-xM41hdLLqx4mLsQ4KKJOhjgqV/view ) .
42+
3743## How to run
3844
3945To run GAM on a graph-based dataset (e.g., Cora, Citeseer, Pubmed), from this
40- folder run: `bash python3.7 -m gam.experiments.run_train_gam_graph
46+ folder run: `$ python3.7 -m gam.experiments.run_train_gam_graph
4147--data_path=<path_to_data>`
4248
43- To run GAM on datasets without a graph (e.g., CIFAR10), from this folder run:
44- ` bash python3.7 -m gam.experiments.run_train_gam `
49+ To run GAM on datasets without a graph (e.g., CIFAR10), from this folder run: `$
50+ python3.7 -m gam.experiments.run_train_gam`
51+
52+ We recommend running on a GPU. With CUDA, this can be done by prepending
53+ ` CUDA_VISIBLE_DEVICES=<your-gpu-number> ` in front of the run command.
4554
4655For running on different datasets and configuration, please check the command
47- line flags in each of the run scripts.
56+ line flags in each of the run scripts. The configurations used in our paper can
57+ be found in the file ` run_configs.txt ` .
58+
59+ ## Visualizing the results.
60+
61+ To visualize the results in Tensorboard, use the following command, adjusting
62+ the dataset name accordingly: ` $ tensorboard --logdir=outputs/summaries/cora `
63+
64+ An example of such visualization for Cora with GCN + GAM model on the Pubmed
65+ dataset is the following:
66+ ![ Tensorboard plot] ( gam_gcn_pubmed.png?raw=true " GCN + GAM on Pubmed ")
67+
68+ Similarly, we can run with multiple different parameter configurations and plot
69+ the results together for comparison. An example showing the accuracy per
70+ co-train iteration of a GCN + GAM model on the Cora dataset for 3 runs with 3
71+ different random seeds is the following:
72+ ![ Tensorboard plot] ( gam_gcn_cora_multiple_seeds.png?raw=true " GCN + GAM on Cora ")
4873
4974## References
5075
51- [[ 1] O. Stretcu, K. Viswanathan, D. Movshovitz-Attias, E.A. Platanios, A.
52- Tomkins, S. Ravi . "Graph Agreement Models for Semi-Supervised Learning." NeurIPS
53- 2019] ( https://nips.cc/Conferences/2019/Schedule?showEvent=13925 )
76+ [[ 1] O. Stretcu, K. Viswanathan, D. Movshovitz-Attias, E.A. Platanios, S. Ravi,
77+ A. Tomkins . "Graph Agreement Models for Semi-Supervised Learning." NeurIPS
78+ 2019] ( https://papers. nips.cc/paper/9076-graph-agreement-models-for-semi-supervised-learning )
5479
5580[[ 2] T. Bui, S. Ravi and V. Ramavajjala. "Neural Graph Learning: Training Neural
5681Networks Using Graphs." WSDM 2018] ( https://research.google/pubs/pub46568.pdf )
0 commit comments