21. Example scripts¶
Use this index when you want small, readable entrypoints that run directly from the repository checkout. These scripts are intentionally lighter than full benchmark configs and easier to adapt inside your own code.
21.1 How to run them¶
From the repository root:
python examples/00_inductive_toy_pseudo_label.py
python examples/01_transductive_toy_label_propagation.py
python examples/02_sampling_toy_holdout.py
If you installed only from PyPI, clone the repository first because the examples/ folder is a repository asset.
21.2 Script index¶
| Script | Focus | Typical use |
|---|---|---|
examples/00_inductive_toy_pseudo_label.py |
Inductive SSL on the built-in toy dataset | first Python API success |
examples/01_transductive_toy_label_propagation.py |
Graph-based SSL with label propagation | first transductive API run |
examples/01_evaluation_quickstart.py |
Metrics from labels or score matrices | evaluation helpers |
examples/02_sampling_toy_holdout.py |
Deterministic holdout split creation | sampling API and stats |
examples/02_hpo_primitives_quickstart.py |
HPO space primitives | inspect modssc.hpo.Space quickly |
examples/03_cli_smoke.py |
CLI smoke test | verify entrypoints and discover commands |
examples/04_inductive_cotraining_two_views.py |
Two-view inductive SSL | multi-view data and co-training |
21.3 Which scripts to run first¶
- Start with
00_inductive_toy_pseudo_label.pyif you want the shortest end-to-end Python example. - Run
03_cli_smoke.pyif you want a quick environment check across CLI bricks. - Run
04_inductive_cotraining_two_views.pywhen you are specifically exploringdata.views.