Hand-curated, famous, and ready graph datasets.
Project description
Graph Sets
Hand-curated graph datasets for fast experimentation with graph neural networks. Loaders return PyTorch-ready tensors so you can focus on modeling instead of wrangling benchmark data.
Installation
pip install graphsets
Usage
from graphsets import load_cora
# directory containing cora.content and cora.cites from the standard Cora release
data_dir = "/path/to/cora"
features, adj, labels, idx_train, idx_val, idx_test = load_cora(data_dir)
What you get
- Features: float tensor of node attributes (row-normalized).
- Adjacency: symmetric 0/1 tensor built from
cora.cites. - Labels: integer class ids matching the original paper labels.
- Splits: simple train/val/test indices (140/300/1000 nodes) for quick baselines.
Datasets
cora— citation network commonly used for GCN/GAT benchmarks.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
graphsets-0.0.12.tar.gz
(5.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file graphsets-0.0.12.tar.gz.
File metadata
- Download URL: graphsets-0.0.12.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
152c8bca2a6f05731db34ffb70c0204dd451663cca0f7d0f1ef998de8f2e0ae9
|
|
| MD5 |
430ad556d656aca49352b4da8555913b
|
|
| BLAKE2b-256 |
ea58b14c4100cef426fd0c3845fb7f194571f4de6160c3c94428206272ef6508
|
File details
Details for the file graphsets-0.0.12-py3-none-any.whl.
File metadata
- Download URL: graphsets-0.0.12-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
416720db26a7bf992c036cd41fbd622032e50e7ee33cea04f95ddc6815c2db1a
|
|
| MD5 |
722a684cb0a911222118a5c148a7225f
|
|
| BLAKE2b-256 |
ecd4c98f09380d7d4b4aeace298400ee7498e9433bb3f2a3e05c996f9f45ef44
|