How alanvaa06/termo works
TERMO is a weekly, descriptive Treasury-curve regime monitor: it turns hash-checked FRED data into ranked features, phase/confidence/driver readings, and committee reports. It also supports registered experiments, walk-forward validation, descriptive checks, and monthly summaries. The README documents the product workflow; source-index references and excerpts support internal calls where noted. Several entry-point and report-generation implementations were not sampled, so those links follow README documentation rather than inspected call sites.
Main entry points: shadow.py Shadow operation · reading.py Weekly reading · walkforward.py Walk-forward fits · model.py Phase surrogate
Components 24
Data intake
- FRED fetch
src/termo/data/fred.py - Verified snapshot
src/termo/data/snapshot.py - Curve loader
src/termo/data/loader.py - Analysis dataset
src/termo/dataset.py
Regime reading
- Feature pipeline
src/termo/features/pipeline.py - Move ranks
src/termo/features/tyccles.py - Walk-forward fits
src/termo/validation/walkforward.py - Jump regime model
src/termo/regime/model.py - Phase surrogate
src/termo/surrogate/model.py - Driver attribution
src/termo/surrogate/explain.py
Validation
- Experiment stages
src/termo/core.py - Trial registry
src/termo/validation/trials.py - Phase criteria
src/termo/descriptive/criteria.py - Validation metrics
src/termo/validation/metrics.py
Committee outputs
- Weekly runner
src/termo/run_week.py - Weekly reading
src/termo/reading.py - Shadow operation
src/termo/operation/shadow.py - Macro context
src/termo/operation/macro.py - Weekly sheet and CSV
src/termo/operation/sheet_es.py - Monthly summary
src/termo/operation/monthly.py - Report data
src/termo/operation/visual/datos.py - HTML report
src/termo/operation/visual/pagina.py
Other components
- Investment committee
- FRED yields
Connections 27
- FRED yields → FRED fetch: provides yields
README.md - FRED fetch → Verified snapshot: stores download
README.md - Curve loader → Verified snapshot: reads and verifies
src/termo/data/loader.py - Weekly runner → Shadow operation: runs weekly
README.md - Shadow operation → Curve loader: loads curve
src/termo/operation/shadow.py - Shadow operation → Analysis dataset: builds analysis data
src/termo/operation/shadow.py - Analysis dataset → Feature pipeline: builds features
src/termo/dataset.py - Feature pipeline → Move ranks: uses rank recipe
src/termo/features/pipeline.py - Walk-forward fits → Feature pipeline: fits pipeline
src/termo/validation/walkforward.py - Walk-forward fits → Jump regime model: fits regimes
src/termo/validation/walkforward.py - Jump regime model → Phase surrogate: supplies phase labels
README.md - Phase surrogate → Driver attribution: explains predictions
src/termo/surrogate/explain.py - Shadow operation → Weekly reading: creates reading
src/termo/operation/shadow.py - Phase surrogate → Weekly reading: supplies confidence
README.md - Driver attribution → Weekly reading: supplies drivers
README.md - Shadow operation → Macro context: adds context
src/termo/operation/shadow.py - Shadow operation → Weekly sheet and CSV: writes sheet
src/termo/operation/shadow.py - Weekly reading → Weekly sheet and CSV: included in deliverable
README.md - Monthly summary → Investment committee: provides monthly ficha
README.md - Report data → HTML report: supplies report data
src/termo/operation/visual/pagina.py - Weekly sheet and CSV → HTML report: renders weekly report
src/termo/operation/visual/pagina.py - HTML report → Investment committee: presents HTML report
README.md - Investment committee → Weekly runner: requests reading
README.md - Experiment stages → Trial registry: records trial results
src/termo/core.py - Walk-forward fits → Validation metrics: measures refits
src/termo/validation/walkforward.py - Phase criteria → Validation metrics: uses metrics
src/termo/descriptive/criteria.py - Shadow operation → Phase criteria: checks phase criteria
src/termo/operation/shadow.py