API reference¶
Auto-generated reference for the public surface of GraphNetz. The reference is organised by module so deep links stay stable as the package grows; the top-level convenience imports below cover everything you’ll typically need.
Top-level convenience imports¶
Importable directly from graphnetz:
Models
|
Two-layer Graph Convolutional Network. |
|
Two-layer Graph Attention Network. |
|
Graph Isomorphism Network for graph-level prediction. |
|
Two-layer GraphSAGE for node-level prediction. |
|
Two-layer graph transformer based on TransformerConv. |
|
Deep Graph Infomax for unsupervised node representation learning. |
Datasets
|
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2). |
|
Netzschleuder network dataset. |
|
Download and process every network in a Netzschleuder dataset. |
|
Return loader names organized by category and task. |
Benchmark
|
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2). |
|
Structured outcome of a multi-seed benchmark run. |
|
How to instantiate a model and which task tasks it supports. |
|
A single benchmark task_type: a dataset loader plus its training task. |
|
Flatten |
|
Grouped bar chart with mean ± CI error bars. |
|
Register a model with the benchmark dispatcher. |
|
Register |
|
Run a benchmark across one or more (model, task, seed) combinations. |
|
Wrap an already-loaded dataset as a |
|
Remove a previously registered task; returns it, or |
Training utilities
|
Train a node classifier with Planetoid-style train/val/test masks. |
|
Train a graph-level classifier. |
|
Train a graph-level regressor (MSE loss, MAE on val). |
|
Train a link predictor with binary cross-entropy on RandomLinkSplit. |
|
Train a Deep Graph Infomax model (unsupervised). |
|
Self-supervised node-level regression: predict log node degree. |
|
Train a relational link predictor (DistMult) on knowledge graph triples. |
Plotting
|
Create a sized figure. |
|
Add a bold panel label ( |
|
Grouped bar chart from a |
|
Plot a training history dict. |
|
Save |
|
Apply the rcParams and color cycle. |