CLI¶
AdaptivePy provides a Click-based command-line interface installed as adaptivepy.
Commands¶
run¶
Execute a full adaptive sampling workflow from a YAML configuration:
This loads features, clusters frames, applies all configured policies, selects
seeds, and writes outputs to output_dir.
validate¶
Check configuration and input data without running clustering:
Useful for catching missing files, shape mismatches, or invalid policy names before a long run.
list-policies¶
Print all registered policy names:
Example output:
Built-in policies:
| Policy | Description |
|---|---|
least_counts |
Select least-populated clusters |
random |
Random cluster sampling |
fast |
Feature-directed exploration/exploitation (Zimmerman & Bowman 2015) |
ma_reap |
Multiagent REAP with agent stakes and learned CV weights (Kleiman & Shukla 2022) |
knn_as |
k-nearest-neighbors adaptive sampling over cluster representatives (Rovers et al. 2025) |
maxent_vampnet |
Entropy-based frame selection via VAMPNet; no clustering (Kleiman & Shukla 2023) |
ts_dar |
OOD-score frame selection via TS-DAR hyperspherical embeddings (Liu et al. 2025) |
See Policies for configuration details.
Version¶
Exit codes¶
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Validation or runtime error |
Errors are printed to stderr with a short message.
Examples¶
Feature-only run:
Validate before running: