Metadata-Version: 2.4
Name: spfaa
Version: 2026.9.3
Summary: Score-Preserving Forecast Admission and Audit (SPFAA) reference implementation
Author: Xindi Wang, Yixue Li, Chitin Hon
License: MIT
Project-URL: Homepage, https://github.com/Xindi-Wang1004/spfaa
Project-URL: Repository, https://github.com/Xindi-Wang1004/spfaa
Keywords: forecasting,proper scoring rules,model admission,reproducibility
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy<2.0,>=1.20
Requires-Dist: scipy<2.0,>=1.10
Requires-Dist: pandas<3.0,>=2.0
Requires-Dist: pyyaml>=5.4
Requires-Dist: jsonschema>=4.0
Dynamic: license-file

# SPFAA — Score-Preserving Forecast Admission and Audit

Executable **reference implementation** for tiered model admission in probabilistic forecasting: authorization of escalation models is separated from unchanged proper-score ranking within the authorized set.

This repository is a **reusable software artifact** (schema, validator, CLI, frozen decision trails, tests). It is not a manuscript archive.

## Quick start

```bash
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
make reproduce
```

## Adopt for a new workflow

```bash
PYTHONPATH=. python -m spfaa.cli init my_forecast_protocol
# Edit my_forecast_protocol/*.yaml — see TEMPLATE.md
PYTHONPATH=. python -m spfaa.cli validate examples/bike_three_block.yaml
```

## Commands

| Command | Purpose |
|---------|---------|
| `make reproduce` | Validate + tests + trail checks + bike replay |
| `spfaa validate trail.yaml` | Structural trail check |
| `spfaa replay manifest.yaml` | End-to-end replay (bike supported) |
| `spfaa init DIR/` | Scaffold a new protocol bundle |

Verification limits: **`VERIFICATION_SCOPE.md`**. Adoption guide: **`TEMPLATE.md`**.

## Archive

- GitHub: https://github.com/Xindi-Wang1004/spfaa
- Zenodo: https://doi.org/10.5281/zenodo.22275811
- PyPI: `pip install spfaa`

## License

MIT — see `LICENSE`. Cite via `CITATION.cff`.
