Metadata-Version: 2.4
Name: generalforecast
Version: 0.1.15
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Rust
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Dist: cryptography>=46
Requires-Dist: httpx==0.28.1
Requires-Dist: huggingface-hub>=2.2.0
Requires-Dist: jax>=0.11.0
Requires-Dist: jaxtyping>=0.2.38
Requires-Dist: numpy>=2.5.3
Requires-Dist: pandas>=2.2
Requires-Dist: pyarrow>=24
Requires-Dist: pyyaml>=6.0.2
Requires-Dist: safetensors>=0.8.0
Requires-Dist: scikit-learn>=1.9.1
Requires-Dist: jax[cuda13]>=0.12 ; sys_platform == 'linux' and extra == 'cuda'
Requires-Dist: polars>=1.30,<2 ; extra == 'polars'
Provides-Extra: cuda
Provides-Extra: polars
License-File: LICENSE
Summary: gf: predictors on tabular and time series foundation models, local or hosted
Author-email: General Forecast <tejas@generalforecast.com>
License-Expression: Apache-2.0
Requires-Python: >=3.12
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://generalforecast.com
Project-URL: Repository, https://github.com/generalforecast/generalforecast

# General Forecast

Predictors on tabular and time series foundation models. One manifest, `gf.yaml`, runs the same predictor on your machine and hosted.

- Website: https://generalforecast.com
- Docs: https://docs.generalforecast.com/

```sh
uv pip install generalforecast
```

Predict or forecast with an `sklearn`-compatible interface.

```python
import numpy as np
import pandas as pd
from sklearn.datasets import load_breast_cancer
from sklearn.model_selection import train_test_split

import generalforecast as gf

X, y = load_breast_cancer(return_X_y=True)
X_context, X_queries, y_context, y_queries = train_test_split(X, y, random_state=0)

clf = gf.Classifier(model="general-forecast/tabicl-v2-classifier")
clf.fit(X_context, y_context)
probabilities = clf.predict_proba(X_queries)

days = pd.date_range("2025-01-01", periods=60, freq="D")
history = pd.DataFrame(
    {
        "date": np.tile(days, 2),
        "sku": np.repeat(["a", "b"], 60),
        "units": np.r_[np.arange(60.0) % 7, 10 + np.arange(60.0) % 5],
    }
)
fc = gf.Forecaster(target="units", time="date", series="sku", horizon=7)
fc.fit(history)
quantiles = fc.forecast()  # 0.1, 0.5 and 0.9 for each sku and step
```

For deployments on large, live datasets, please take a look at the [docs](https://docs.generalforecast.com/).

## Contributing

We welcome and value any contributions and collaborations; see
[CONTRIBUTING.md](CONTRIBUTING.md). For more specific questions, please
contact hello@generalforecast.com.

## License

Licensed under the [Apache License 2.0](LICENSE).

If you use General Forecast, please cite our work:
```bibtex
@misc{generalforecast2026,
    title={General Forecast: A unified high-throughput inference engine for structured data foundation models},
    author={Tejas Prabhune and Ayushi Batwara},
    year={2026},
    publisher={GitHub},
    howpublished={\url{https://github.com/generalforecast/generalforecast}}
}
```

