graphslim 1.2.0__tar.gz → 1.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {graphslim-1.2.0/graphslim.egg-info → graphslim-1.2.1}/PKG-INFO +1 -1
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/config.py +12 -1
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/dataset/loader.py +92 -7
- {graphslim-1.2.0 → graphslim-1.2.1/graphslim.egg-info}/PKG-INFO +1 -1
- {graphslim-1.2.0 → graphslim-1.2.1}/pyproject.toml +1 -1
- {graphslim-1.2.0 → graphslim-1.2.1}/LICENSE +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/MANIFEST.in +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/README.md +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/__init__.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/coarsening/__init__.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/coarsening/affinity_gs.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/coarsening/algebraic_jc.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/coarsening/averaging.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/coarsening/clustering.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/coarsening/clusteringagg.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/coarsening/coarsening_base.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/coarsening/heavy_edge.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/coarsening/kron.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/coarsening/utils.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/coarsening/variation_cliques.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/coarsening/variation_edges.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/coarsening/variation_neighborhoods.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/coarsening/vng.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/__init__.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/doscond.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/doscondx.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/gcdm.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/gcdmx.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/gcond.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/gcond_base.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/gcondx.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/gcsntk.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/gdem.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/gecc.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/geom.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/mirage.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/msgc.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/sfgc.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/sgdd.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/simgc.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/condensation/utils.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/doscond/amazon.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/doscond/citeseer.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/doscond/cora.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/doscond/flickr.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/doscond/ogbn-arxiv.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/doscond/pubmed.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/doscond/reddit.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/doscond/yelp.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/doscondx/amazon.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/doscondx/citeseer.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/doscondx/cora.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/doscondx/flickr.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/doscondx/ogbn-arxiv.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/doscondx/pubmed.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/doscondx/reddit.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/doscondx/yelp.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcdm/amazon.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcdm/citeseer.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcdm/cora.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcdm/flickr.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcdm/ogbn-arxiv.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcdm/pubmed.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcdm/reddit.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcdm/yelp.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcond/amazon.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcond/citeseer.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcond/cora.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcond/flickr.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcond/ogbn-arxiv.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcond/pubmed.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcond/reddit.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcond/yelp.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcondx/amazon.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcondx/citeseer.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcondx/cora.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcondx/flickr.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcondx/ogbn-arxiv.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcondx/pubmed.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcondx/reddit.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcondx/yelp.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcsntk/amazon.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcsntk/citeseer.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcsntk/cora.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcsntk/flickr.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcsntk/ogbn-arxiv.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcsntk/pubmed.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcsntk/reddit.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gcsntk/yelp.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gdem/amazon.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gdem/citeseer.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gdem/cora.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gdem/flickr.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gdem/ogbn-arxiv.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gdem/pubmed.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gdem/reddit.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gdem/yelp.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gecc/citeseer.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gecc/cora.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gecc/flickr.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gecc/ogbn-arxiv.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gecc/ogbn-products.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gecc/pubmed.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/gecc/reddit.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/geom/amazon.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/geom/citeseer.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/geom/cora.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/geom/flickr.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/geom/ogbn-arxiv.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/geom/pubmed.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/geom/reddit.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/geom/yelp.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/msgc/amazon.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/msgc/citeseer.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/msgc/cora.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/msgc/flickr.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/msgc/ogbn-arxiv.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/msgc/pubmed.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/msgc/reddit.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/msgc/yelp.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/sfgc/amazon.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/sfgc/citeseer.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/sfgc/cora.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/sfgc/flickr.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/sfgc/ogbn-arxiv.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/sfgc/pubmed.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/sfgc/reddit.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/sfgc/yelp.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/sgdd/amazon.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/sgdd/citeseer.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/sgdd/cora.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/sgdd/flickr.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/sgdd/ogbn-arxiv.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/sgdd/pubmed.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/sgdd/reddit.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/sgdd/yelp.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/simgc/amazon.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/simgc/citeseer.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/simgc/cora.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/simgc/flickr.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/simgc/ogbn-arxiv.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/simgc/pubmed.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/simgc/reddit.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/configs/simgc/yelp.json +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/dataset/__init__.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/dataset/attack.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/dataset/convertor.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/dataset/utils.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/evaluation/__init__.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/evaluation/eval_agent.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/evaluation/graph_property.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/evaluation/nas_eval.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/evaluation/utils.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/__init__.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/appnp.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/base.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/cheby.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/gat.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/gcn.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/gntk.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/graphsage.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/ignr.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/krr.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/layers.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/parametrized_adj.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/prbcd.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/random_attack.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/reparam_module.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/sgc.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/sgformer.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/models/sntk.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/run_eval.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/__init__.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/cent_degree.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/cent_pagerank.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/coreset_base.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/edge_sparsification_base.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_citeseer_0.1_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_citeseer_0.25_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_citeseer_0.5_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_citeseer_1.0_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_cora_0.1_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_cora_0.25_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_cora_0.5_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_cora_1.0_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_flickr_0.001_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_flickr_0.005_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_flickr_0.01_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_ogbn-arxiv_0.001_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_ogbn-arxiv_0.005_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_ogbn-arxiv_0.01_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_reddit_0.0005_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_reddit_0.001_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_reddit_0.002_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_reddit_0.005_kcenter_15.npy +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/g_spar.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/herding.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/herding_agg.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/kcenter.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/kcenter_agg.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/kcenter_sample.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/local_degree.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/model_based_coreset_base.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/model_free_coreset_base.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/random.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/random_edge.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/rank_degree.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/scan.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/spanning_forest.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/t_spanner.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/utils.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim/utils.py +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim.egg-info/SOURCES.txt +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim.egg-info/dependency_links.txt +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim.egg-info/requires.txt +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/graphslim.egg-info/top_level.txt +0 -0
- {graphslim-1.2.0 → graphslim-1.2.1}/setup.cfg +0 -0
|
@@ -51,12 +51,18 @@ def _stringify_value(value):
|
|
|
51
51
|
PARAMETER_CATEGORIES = {
|
|
52
52
|
'Common': {
|
|
53
53
|
'dataset', 'method', 'gpu_id', 'device', 'setting', 'split', 'run_reduction', 'run_eval',
|
|
54
|
-
'run_inter_eval', 'eval_interval', 'hidden', 'condense_model', 'epochs', '
|
|
54
|
+
'run_inter_eval', 'eval_interval', 'hidden', 'condense_model', 'epochs', 'multi_label',
|
|
55
55
|
'dis_metric', 'lr_adj', 'lr_feat', 'optim', 'threshold', 'dropout', 'ntrans', 'with_bn',
|
|
56
56
|
'save_path', 'load_path', 'eval_whole', 'with_structure', 'lr', 'weight_decay', 'pre_norm',
|
|
57
57
|
'outer_loop', 'inner_loop', 'reduction_rate', 'seed', 'nlayers', 'verbose', 'soft_label',
|
|
58
58
|
'init', 'checkpoints', 'logger','metric'
|
|
59
59
|
},
|
|
60
|
+
'GEOM, SFGC': {
|
|
61
|
+
'no_buff'
|
|
62
|
+
},
|
|
63
|
+
'KCenter, Herding, Random, Clustering': {
|
|
64
|
+
'agg'
|
|
65
|
+
},
|
|
60
66
|
'Downstream Evaluation': {
|
|
61
67
|
'eval_epochs', 'eval_model', 'final_eval_model', 'eval_wd', 'eval_loss', 'activation', 'alpha'
|
|
62
68
|
},
|
|
@@ -88,6 +94,7 @@ CATEGORY_ORDER = [
|
|
|
88
94
|
'Downstream Evaluation',
|
|
89
95
|
'Attack',
|
|
90
96
|
'Coarsening',
|
|
97
|
+
'KCenter, Herding, Random, Clustering',
|
|
91
98
|
'GEOM, SFGC',
|
|
92
99
|
'MSGC',
|
|
93
100
|
'GCSNTK',
|
|
@@ -104,6 +111,7 @@ COARSENING_METHODS = {
|
|
|
104
111
|
CATEGORY_METHOD_REQUIREMENTS = {
|
|
105
112
|
'Coarsening': COARSENING_METHODS,
|
|
106
113
|
'GEOM, SFGC': {'geom', 'sfgc'},
|
|
114
|
+
'KCenter, Herding, Random, Clustering': {'kcenter', 'herding', 'random', 'clustering'},
|
|
107
115
|
'MSGC': {'msgc'},
|
|
108
116
|
'GCSNTK': {'gcsntk'},
|
|
109
117
|
'Tspanner': {'tspanner', 't_spanner'},
|
|
@@ -166,6 +174,9 @@ def format_args_tables(args):
|
|
|
166
174
|
for key, value in args_dict.items():
|
|
167
175
|
if key.startswith('_'):
|
|
168
176
|
continue
|
|
177
|
+
if key == 'no_buff':
|
|
178
|
+
if not (isinstance(method, str) and method.lower() in ('geom', 'sfgc')):
|
|
179
|
+
continue
|
|
169
180
|
category = _get_category_for_key(key)
|
|
170
181
|
if category is None and method_specific_category:
|
|
171
182
|
category = method_specific_category
|
|
@@ -21,6 +21,19 @@ import shutil
|
|
|
21
21
|
from graphslim.dataset.convertor import ei2csr, csr2ei, from_dgl
|
|
22
22
|
from graphslim.dataset.utils import splits
|
|
23
23
|
from graphslim.utils import index_to_mask, to_tensor
|
|
24
|
+
try:
|
|
25
|
+
from torch_geometric.data.data import DataEdgeAttr, DataTensorAttr # type: ignore
|
|
26
|
+
except ImportError:
|
|
27
|
+
DataEdgeAttr = None # type: ignore
|
|
28
|
+
DataTensorAttr = None # type: ignore
|
|
29
|
+
try:
|
|
30
|
+
from torch_geometric.data.storage import GlobalStorage # type: ignore
|
|
31
|
+
except ImportError:
|
|
32
|
+
GlobalStorage = None # type: ignore
|
|
33
|
+
try:
|
|
34
|
+
import torch.serialization as torch_serialization
|
|
35
|
+
except ImportError:
|
|
36
|
+
torch_serialization = None
|
|
24
37
|
|
|
25
38
|
|
|
26
39
|
def get_dataset(name='cora', args=None, load_path='../../data'):
|
|
@@ -373,15 +386,42 @@ class DataGraphSAINT:
|
|
|
373
386
|
dataset_str = root + '/' + dataset + '/raw/'
|
|
374
387
|
if not osp.exists(dataset_str):
|
|
375
388
|
os.makedirs(dataset_str)
|
|
389
|
+
required_files = ['adj_full.npz', 'role.json', 'feats.npy', 'class_map.json']
|
|
390
|
+
missing_files = [fname for fname in required_files if not osp.exists(osp.join(dataset_str, fname))]
|
|
391
|
+
if missing_files:
|
|
376
392
|
print('Downloading dataset')
|
|
377
393
|
url = 'https://drive.google.com/drive/folders/1VDobXR5KqKoov6WhYXFMwH4rN0FMnVOa' # Change this to your actual file ID
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
394
|
+
try:
|
|
395
|
+
downloaded_items = gdown.download_folder(url=url, output=dataset_str, quiet=False)
|
|
396
|
+
except Exception as exc:
|
|
397
|
+
print(f'gdown download failed: {exc}')
|
|
398
|
+
downloaded_items = None
|
|
399
|
+
if downloaded_items:
|
|
400
|
+
if isinstance(downloaded_items, str):
|
|
401
|
+
downloaded_items = [downloaded_items]
|
|
402
|
+
for item_path in downloaded_items:
|
|
403
|
+
if not isinstance(item_path, str):
|
|
404
|
+
continue
|
|
405
|
+
if osp.isdir(item_path):
|
|
406
|
+
for filename in os.listdir(item_path):
|
|
407
|
+
src = osp.join(item_path, filename)
|
|
408
|
+
dst = osp.join(dataset_str, filename)
|
|
409
|
+
if osp.abspath(src) == osp.abspath(dst):
|
|
410
|
+
continue
|
|
411
|
+
shutil.move(src, dst)
|
|
412
|
+
if osp.abspath(item_path) != osp.abspath(dataset_str):
|
|
413
|
+
shutil.rmtree(item_path)
|
|
414
|
+
elif osp.isfile(item_path):
|
|
415
|
+
dst = osp.join(dataset_str, osp.basename(item_path))
|
|
416
|
+
if osp.abspath(item_path) != osp.abspath(dst):
|
|
417
|
+
shutil.move(item_path, dst)
|
|
418
|
+
missing_files = [fname for fname in required_files if not osp.exists(osp.join(dataset_str, fname))]
|
|
419
|
+
if missing_files and dataset == 'ogbn_arxiv':
|
|
420
|
+
print('Falling back to OGB loader for ogbn-arxiv.')
|
|
421
|
+
self._prepare_ogbn_arxiv_from_ogb(dataset_str, root)
|
|
422
|
+
missing_files = [fname for fname in required_files if not osp.exists(osp.join(dataset_str, fname))]
|
|
423
|
+
if missing_files:
|
|
424
|
+
raise RuntimeError(f'Unable to prepare dataset files: {missing_files}')
|
|
385
425
|
|
|
386
426
|
if dataset == 'ogbn_arxiv':
|
|
387
427
|
self.adj_full = sp.load_npz(dataset_str + 'adj_full.npz')
|
|
@@ -404,6 +444,51 @@ class DataGraphSAINT:
|
|
|
404
444
|
class_map = json.load(open(dataset_str + 'class_map.json', 'r'))
|
|
405
445
|
self.labels_full = to_tensor(label=self.process_labels(class_map))
|
|
406
446
|
|
|
447
|
+
def _prepare_ogbn_arxiv_from_ogb(self, dataset_str, root):
|
|
448
|
+
from ogb.nodeproppred import PygNodePropPredDataset
|
|
449
|
+
if torch_serialization is not None:
|
|
450
|
+
add_safe_globals = getattr(torch_serialization, 'add_safe_globals', None)
|
|
451
|
+
if callable(add_safe_globals):
|
|
452
|
+
safe_classes = []
|
|
453
|
+
if DataEdgeAttr is not None:
|
|
454
|
+
safe_classes.append(DataEdgeAttr)
|
|
455
|
+
if DataTensorAttr is not None:
|
|
456
|
+
safe_classes.append(DataTensorAttr)
|
|
457
|
+
if GlobalStorage is not None:
|
|
458
|
+
safe_classes.append(GlobalStorage)
|
|
459
|
+
if safe_classes:
|
|
460
|
+
add_safe_globals(safe_classes)
|
|
461
|
+
ogb_root = osp.join(root, 'ogb_cache')
|
|
462
|
+
dataset = PygNodePropPredDataset(name='ogbn-arxiv', root=ogb_root)
|
|
463
|
+
data = dataset[0]
|
|
464
|
+
split_idx = dataset.get_idx_split()
|
|
465
|
+
|
|
466
|
+
features = data.x.cpu().numpy().astype(np.float32)
|
|
467
|
+
labels = data.y.view(-1).cpu().numpy().astype(np.int64)
|
|
468
|
+
edge_index = data.edge_index.cpu().numpy()
|
|
469
|
+
num_nodes = features.shape[0]
|
|
470
|
+
|
|
471
|
+
values = np.ones(edge_index.shape[1], dtype=np.float32)
|
|
472
|
+
adj = sp.coo_matrix((values, (edge_index[0], edge_index[1])), shape=(num_nodes, num_nodes))
|
|
473
|
+
adj = adj.tocsr()
|
|
474
|
+
adj = adj + adj.T
|
|
475
|
+
adj[adj > 1] = 1
|
|
476
|
+
|
|
477
|
+
sp.save_npz(osp.join(dataset_str, 'adj_full.npz'), adj)
|
|
478
|
+
np.save(osp.join(dataset_str, 'feats.npy'), features)
|
|
479
|
+
|
|
480
|
+
role = {
|
|
481
|
+
'tr': split_idx['train'].cpu().tolist(),
|
|
482
|
+
'va': split_idx['valid'].cpu().tolist(),
|
|
483
|
+
'te': split_idx['test'].cpu().tolist(),
|
|
484
|
+
}
|
|
485
|
+
with open(osp.join(dataset_str, 'role.json'), 'w') as f:
|
|
486
|
+
json.dump(role, f)
|
|
487
|
+
|
|
488
|
+
class_map = {str(idx): int(label) for idx, label in enumerate(labels)}
|
|
489
|
+
with open(osp.join(dataset_str, 'class_map.json'), 'w') as f:
|
|
490
|
+
json.dump(class_map, f)
|
|
491
|
+
|
|
407
492
|
def process_labels(self, class_map):
|
|
408
493
|
"""
|
|
409
494
|
setup vertex property map for output classests
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_cora_0.1_kcenter_15.npy
RENAMED
|
File without changes
|
{graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_cora_0.25_kcenter_15.npy
RENAMED
|
File without changes
|
{graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_cora_0.5_kcenter_15.npy
RENAMED
|
File without changes
|
{graphslim-1.2.0 → graphslim-1.2.1}/graphslim/sparsification/fixed_idx/idx_cora_1.0_kcenter_15.npy
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|