CLI Reference#
python -m calibration [OPTIONS]
Options#
Option |
Default |
Description |
|---|---|---|
|
baseline |
Scenario: |
|
all |
Phase: |
|
morris |
Sensitivity method: |
|
10 |
Number of Morris trajectories |
|
10 |
Parallel workers |
|
1000 |
Simulation periods |
|
0.02 |
Minimum Δ for INCLUDE in grid search |
|
auto |
Max score gap for keeping values: |
|
3 |
Seeds per sensitivity evaluation |
|
100:10,50:20,10:100 |
Tiers as |
|
false |
Resume from checkpoint |
|
(none) |
Load custom grid from YAML/JSON file |
|
(none) |
Fix a parameter: |
|
combined |
Ranking strategy: |
|
1.0 |
k in mean−k×std formula (combined mode) |
|
(timestamped) |
Custom output directory |
|
(none) |
Load fixed params from stability JSON (rescreen) |
|
(none) |
Parameter group or comma-separated names (rescreen) |
|
(none) |
Base config from stability JSON or YAML (cost, sweep) |
|
(none) |
Swap values: |
|
false |
Run combo grid of cheap swaps (cost) |
|
(none) |
Comma-separated scenario list (cross-eval) |
|
(none) |
Configs from result JSON (cross-eval) |
|
(none) |
Stage definitions: |
|
(none) |
Cross-evaluate against this scenario (sweep) |
Output Structure#
Results are saved to timestamped directories:
output/2026-02-24_143052_baseline/
├── sensitivity.json # Sensitivity analysis results
├── sensitivity_report.md # Sensitivity markdown report
├── morris.json # Morris method results
├── screening.json # Grid screening results
├── screening_report.md # Screening markdown report
├── stability.json # Stability-tested results
├── stability_report.md # Stability markdown report
├── full_report.md # Combined report
├── best_config.yml # Best config as YAML
└── pairwise.json # Pairwise interactions
Common Workflows#
# Full pipeline with defaults
python -m calibration --scenario baseline --workers 10
# Morris screening only
python -m calibration --phase sensitivity --workers 10
# OAT instead of Morris
python -m calibration --phase sensitivity --method oat --workers 10
# Custom grid input
python -m calibration --phase grid --grid custom_grid.yaml
# Custom stability tiers
python -m calibration --phase stability --stability-tiers "50:10,20:30,5:100"
# Growth+ scenario
python -m calibration --scenario growth_plus --workers 10
# Second-pass Morris screening
python -m calibration --phase rescreen --scenario baseline \
--fix-from output/baseline_stability.json --params behavioral
# Targeted cost analysis
python -m calibration --phase cost --scenario baseline \
--base output/baseline_stability.json --swaps "beta=2.5" --seeds 20
# Cross-scenario evaluation
python -m calibration --phase cross-eval \
--scenarios baseline,growth_plus --configs output/stability.json
# Structured parameter sweep
python -m calibration --phase sweep --scenario baseline \
--base output/stability.json \
--stages "A:beta=0.5,1.0" "B:max_M=2,4" --cross-scenario growth_plus