How anishawasthi/callup works
Callup is a baseball research data-preparation project for studying how Triple-A hitter seasons relate to next-season MLB performance. Its principal workflow is to assemble player-season cohorts and labels, ingest and classify pitch-level data, prepare and validate analysis tables, then provide CSVs for feature work and modeling. The repository also documents batted-ball, ballpark, and promotion-summary research. Some preparation-script call paths are only partially excerpted, so uncertain internal links are omitted or marked unverified.
Main entry points: prepare_analysis.py Analysis preparation · statsapi.py Stats API client · ingest.py Pitch ingestion · cohort.py Cohort builder
Components 16
Cohorts and outcomes
- Cohort report
scripts/cohort_report.py - Cohort builder
callup/cohort.py - Stats API client
callup/statsapi.py - Table contract
callup/contract.py
Pitch data
- Pitch ingestion
callup/ingest.py - Ingest command
scripts/ingest_statcast.py - Archive validation
scripts/validate_archive.py
Preparation and analysis
- Storage helpers
callup/storage.py - Storage preparation
scripts/prepare_storage.py - Analysis preparation
scripts/prepare_analysis.py - Prepared datasets
data - Dataset download
scripts/download_dataset.py
Other components
- Researcher
- MLB Stats API
- Baseball Savant
- Analysis and modeling
Connections 19
- Researcher → Cohort report: runs
README.md - Cohort report → Cohort builder: builds cohorts
scripts/cohort_report.py - Cohort builder → Stats API client: requests stats
callup/cohort.py - Stats API client → MLB Stats API: fetches data
- Researcher → Ingest command: runs
scripts/ingest_statcast.py - Ingest command → Pitch ingestion: dispatches ingest
scripts/ingest_statcast.py - Pitch ingestion → Stats API client: requests schedule
callup/ingest.py - Pitch ingestion → Baseball Savant: downloads pitches
- Researcher → Archive validation: validates archive
README.md - Researcher → Storage preparation: prepares storage
- Storage preparation → Storage helpers: converts and verifies
scripts/prepare_storage.py - Researcher → Analysis preparation: prepares analysis
README.md - Analysis preparation → Cohort builder: builds cohort
scripts/prepare_analysis.py - Analysis preparation → Table contract: validates table
scripts/prepare_analysis.py - Analysis preparation → Stats API client: requests stats
scripts/prepare_analysis.py - Analysis preparation → Prepared datasets: writes tables
- Researcher → Dataset download: gets dataset
README.md - Dataset download → Prepared datasets: provides files
- Prepared datasets → Analysis and modeling: supports feature work
README.md