Dataset CLI
The dataset CLI exposes the public dataset registry used by the examples and notebooks. It can list supported tabular and TorchVision datasets or download them into a local data directory.
Use the console command when installed, or call the module directly:
silva-datasets --list
python -m silva_networks.dataset_cli --list
python -m silva_networks.dataset_cli --root data iris wine
python -m silva_networks.dataset_cli --torchvision --split train CIFAR10
Dataset files are not committed to the repository. The CLI delegates to the same public helpers documented in Datasets.
From Dataset to SILVA State
The command downloads raw records; model adaptation remains explicit. For a tabular dataset with \(N\) rows and \(d_{\rm in}\) features, the common route is
from silva_networks import load_tabular_dataset, tabular_to_silva_graph
dataset = load_tabular_dataset("iris", root="data", download=False, normalize=True)
graph = tabular_to_silva_graph(dataset, k=8, normalize=True)
graph.validate()
print(graph.x.shape, graph.edge_index.shape, graph.y.shape)
Use download=False after the first successful retrieval when an experiment
must avoid network access. GraphTensorBatch.validate() checks feature rank,
edge shape and bounds, label alignment, and optional batch assignments before
the data reaches a SILVA transition.
Command Outcomes
| Command | Result |
|---|---|
--list |
names and descriptions of tabular datasets |
--list --torchvision |
supported image-dataset names |
--root PATH NAME |
download or verify a tabular dataset under PATH |
--torchvision --split SPLIT NAME |
download or verify an image split |
For preprocessing equations and custom dataset adapters, continue with Datasets and Preprocessing and the Dataset Quickstart.
main
Download or list package-supported public datasets from the command line.
Source code in src/silva_networks/dataset_cli.py
Where to Go Next
| Question | Page |
|---|---|
| How should downloaded tensors be validated? | Datasets and Preprocessing |
| Which dataset objects are returned? | Datasets API |
| Which complete commands are available? | CLI Guide |