Skip to main content

macrocast

Decomposing ML Forecast Gains in Macroeconomic Forecasting.

An open-source Python (+ R) framework for systematic evaluation of machine learning methods in macroeconomic forecasting, with built-in support for the FRED-MD, FRED-QD, and FRED-SD database ecosystem.

CI Docs PyPI License: MIT


Release Status

Surface State
Latest PyPI release Pending first nfer-macrocast publish
Current repository version 0.1.0
PyPI-safe scope today Data layer and package metadata cleanup
Repo-head, not yet published Forecasting pipeline, evaluation layer, macrocastR companion work

The repository is ahead of the current PyPI release. Install from source if you need unreleased pipeline or evaluation features. The PyPI distribution name is nfer-macrocast. The Python import package remains macrocast.


Installation

pip install nfer-macrocast
# or with all extras
pip install nfer-macrocast[all]

Quick Start

import macrocast as mc

# Load and transform FRED-MD (latest vintage, cached locally)
md = mc.load_fred_md()
md_t = md.transform()

print(md_t)
# MacroFrame(dataset='FRED-MD', vintage='current', T=790, N=128,
#            period=1959-01-01 to 2024-10-01, status=transformed)

# Subset by variable group
output = md_t.group("output_income")   # INDPRO, RPI, ...
prices = md_t.group("prices")          # CPI, PPI, ...

# Check missing values
report = md.missing_report()
print(report[["n_leading", "n_trailing", "n_intermittent"]].head())

# Method chaining
md_ready = (
    mc.load_fred_md()
    .trim(start="1970-01", end="2023-12")
    .handle_missing("trim_start")
    .transform()
)

# Load a specific vintage
md_2020 = mc.load_fred_md(vintage="2020-01")

# FRED-QD (quarterly)
qd = mc.load_fred_qd()

# FRED-SD (state-level)
sd = mc.load_fred_sd(states=["CA", "TX"], variables=["UR"])

Documentation

Full documentation is available at nanyeonk.github.io/macrocast.

R Package Status

macrocastR remains source-only and is not CRAN-ready yet.

  • man/ pages and a full roxygen regeneration/review step are still pending.
  • The R CI workflow currently runs R CMD check in a non-failing mode because documentation artifacts are incomplete.
  • Registry publishing and credentialed release work should happen after those packaging gaps are closed.

License

MIT

Metadata

Release files for nfer-macrocast 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nfer-macrocast 0.1.0
File Size Uploaded Provenance Actions
nfer_macrocast-0.1.0.tar.gz 68.5 kB Without provenance Details for nfer_macrocast-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nfer-macrocast 0.1.0
File Interpreter ABI Platform Actions
nfer_macrocast-0.1.0-py3-none-any.whl Python 3 none any Details for nfer_macrocast-0.1.0-py3-none-any.whl

Total release size: 157.8 kB

Release files / nfer_macrocast-0.1.0.tar.gz

Download URL nfer_macrocast-0.1.0.tar.gz
Size 68.5 kB
Tags Source
SHA-256 checksum
How to use checksums
97f237f57bb65669b1fde30eede47b915ce67399288ba799aec1341fa15567f5
BLAKE2b-256 checksum
How to use checksums
a6ec23eaf3bc0ea0006e6bbd4ee89f20da3598b9a7c5937b65d349c57145281d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / nfer_macrocast-0.1.0-py3-none-any.whl

Download URL nfer_macrocast-0.1.0-py3-none-any.whl
Size 89.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a2ee71c240a984f50c69956860f364ae1fadecfe63e551504e96e4c720d9770
BLAKE2b-256 checksum
How to use checksums
b8b366d426ac041acd30cbbc80d4a695a0da49adf9f49911b9d32fddd82ce418
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for nfer-macrocast 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page