macroforecast
macroforecast is being rebuilt as a pandas-first macro forecasting workflow
package. The current public surface is intentionally small:
macroforecast.meta: package-wide defaults such as random seed and worker count.macroforecast.data: canonical date-indexed panels, metadata, FRED/custom loaders, and study data specs.macroforecast.preprocessing: direct pandas preprocessing callables.macroforecast.data_summary: one-panel summary tables.macroforecast.data_analysis: before/after preprocessing analysis.macroforecast.metrics: scoring metrics and forecast-table ranking.macroforecast.tests: forecast-comparison tests and diagnostics.macroforecast.evaluation: namespace wrapper formetricsandtests.
The old YAML/runtime implementation is no longer part of the clean importable
package. A reference copy is preserved on the legacy-runtime-reference branch.
Install
pip install -e ".[dev]"
Torch is not installed by default in this rebuild.
Quick Use
import macroforecast as mf
mf.configure(random_seed=42, n_jobs=1)
bundle = mf.data.load_custom_csv(
"panel.csv",
date="date",
dataset="my_panel",
frequency="monthly",
)
data_spec = mf.data.spec(
bundle,
target="INDPRO",
horizons=[1, 3, 6],
start="1990-01-01",
end="2024-12-01",
)
processed = mf.preprocessing.reprocess(
data_spec,
transform="custom",
transform_codes={"INDPRO": 5},
outliers="iqr",
impute="em_factor",
)
summary = mf.data_analysis.summarize_data(processed.panel)
analysis = mf.data_analysis.analyze_data(bundle.panel, processed.panel)
Data Shape
The standard panel is a pandas.DataFrame with:
- a
DatetimeIndexnameddate - one macro series per column
- numeric values in the cells
- dataset metadata stored separately and mirrored in
panel.attrs["macroforecast_metadata"]
macroforecast.data.load_*() returns a DataBundle(panel, metadata).
macroforecast.data.spec(...) attaches target, horizon, sample-window, and
predictor choices to that panel.
Documentation
Function-level documentation lives under docs/reference/.
License
MIT
Metadata
Release files for macroforecast 0.9.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| macroforecast-0.9.5.tar.gz | 535.5 kB | Without provenance | Details for macroforecast-0.9.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| macroforecast-0.9.5-py3-none-any.whl | Python 3 | none | any | Details for macroforecast-0.9.5-py3-none-any.whl |
Total release size: 1.1 MB
Release files / macroforecast-0.9.5.tar.gz
| Download URL | macroforecast-0.9.5.tar.gz |
|---|---|
| Size | 535.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10b2eebd0243e201f209c828152e20699b56b86f7be2484817e6028eaeb1c3ee
|
|
BLAKE2b-256 checksum How to use checksums |
ed92996381997ef52f4c10567678aa708eafbb18f3a6de86481bb320095fca79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / macroforecast-0.9.5-py3-none-any.whl
| Download URL | macroforecast-0.9.5-py3-none-any.whl |
|---|---|
| Size | 576.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64805ed469c7673012823e9440ce520b6181aa54b499131eb9e90315161cad3b
|
|
BLAKE2b-256 checksum How to use checksums |
60d2a6eaa040c4c387e5811ae9e7b45a58c25f137caae2a3b0f41685079be753
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for macroforecast 0.9.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.