Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Yohou-MLflow

Python Version License PyPI Version codecov

What is Yohou-MLflow?

Yohou-MLflow is an MLflow flavour for yohou forecasters. It saves a fitted forecaster, including everything it has observed since fitting, as an MLflow model you can log, register and load back, so a scheduled job can load the latest version, observe new data, forecast, and register the update for the next run.

Forecasters are stored with skops instead of pickle, so yohou_mlflow.load_model never runs code chosen by the file. MLflow's generic mlflow.pyfunc.load_model imports the modules a model file names, so load a model you have not reviewed with yohou_mlflow.load_model, or check it first with check_compatibility. Every save is loaded back and compared with the original before it is kept.

Loading is strict about versions. A model loads only under the yohou version it was saved with, and under the same major and minor versions of scikit-learn and polars. Upgrading yohou therefore means refitting saved forecasters, or loading them with strict=False.

Yohou-MLflow supports Python 3.11 to 3.14, MLflow 3, and yohou 0.1.

What are the features of Yohou-MLflow?

  • MLflow flavour: save_model, log_model and load_model for point, interval, class-probability, panel and composite forecasters, with model registry support.
  • No code execution on load: yohou_mlflow.load_model never imports code the model file names, and a fixed trust policy decides which types a saved model may contain; the model file cannot extend it.
  • Save-time verification: a model that would not load back, or would predict differently, is refused when saving rather than months later.
  • Pre-deploy check: check_compatibility reports whether an environment can load a registered model, without constructing anything from it.
  • Generic predict interface: mlflow.pyfunc.load_model(...).predict({"y": new_rows}) observes new rows on a copy and forecasts, with prediction_type selecting point, interval or class-probability forecasts.

How to install Yohou-MLflow?

Install the Yohou-MLflow package using pip:

pip install yohou_mlflow

or using uv:

uv add yohou_mlflow

The package depends on mlflow-skinny. To run a local SQLite tracking server and model registry, as in the tutorial, also install mlflow.

How to get started with Yohou-MLflow?

Register a fitted forecaster:

import mlflow
import yohou_mlflow

with mlflow.start_run():
    yohou_mlflow.log_model(forecaster, name="forecaster", registered_model_name="daily-demand")

In a later run, load it, observe new data, forecast, and register the update:

forecaster = yohou_mlflow.load_model("models:/daily-demand/latest")
forecaster.observe(new_rows)
forecast = forecaster.predict()

with mlflow.start_run():
    yohou_mlflow.log_model(forecaster, name="forecaster", registered_model_name="daily-demand")

Before upgrading the environment that loads it, check that it still can:

print(yohou_mlflow.check_compatibility("models:/daily-demand/latest"))

How do I use Yohou-MLflow?

Full documentation is available at https://yohou-mlflow.readthedocs.io/.

Interactive examples are available in the examples/ directory:

Can I contribute?

We welcome contributions, feedback, and questions:

If you are interested in becoming a maintainer or taking a more active role, please reach out to Guillaume Tauzin on GitHub Discussions.

Where can I learn more?

For questions and discussions, you can also open a discussion.

License

This project is licensed under the terms of the Apache-2.0 License.

How do I cite Yohou-MLflow?

If you use Yohou-MLflow in work you publish, please cite it:

Guillaume Tauzin. Yohou-MLflow: An MLflow integration for saving and serving Yohou forecasters. https://github.com/stateful-y/yohou-mlflow

Or in BibTeX:

@software{yohou_mlflow,
  author  = "Guillaume Tauzin",
  title   = "{Yohou-MLflow: An MLflow integration for saving and serving Yohou forecasters}",
  url     = "https://github.com/stateful-y/yohou-mlflow",
  license = "Apache-2.0"
}

Reference managers can read CITATION.cff directly. To cite a specific version, see the citation page.

Acknowledgements

This project is maintained by stateful-y, an ML consultancy specializing in MLOps and data science & engineering. If you're interested in collaborating or learning more about our services, please visit our website.

Made by stateful-y

Metadata

Release files for yohou-mlflow 0.1.0a1

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

Source distribution (sdist)

Source distribution for yohou-mlflow 0.1.0a1
File Size Uploaded Provenance Actions
yohou_mlflow-0.1.0a1.tar.gz 562.6 kB With provenance Details for yohou_mlflow-0.1.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yohou-mlflow 0.1.0a1
File Interpreter ABI Platform Actions
yohou_mlflow-0.1.0a1-py3-none-any.whl Python 3 none any Details for yohou_mlflow-0.1.0a1-py3-none-any.whl

Total release size: 587.8 kB

Release files / yohou_mlflow-0.1.0a1.tar.gz

Download URL yohou_mlflow-0.1.0a1.tar.gz
Size 562.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3044a3051a3d46a06d70146333522c7470f334988f58a8613ac7183ded69fe9a
BLAKE2b-256 checksum
How to use checksums
2c2c32ac97849bfe464a9aa65aadfc8a0553021e192f589367851e2ea0bdf556
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Release files / yohou_mlflow-0.1.0a1-py3-none-any.whl

Download URL yohou_mlflow-0.1.0a1-py3-none-any.whl
Size 25.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a28331746fce7034701908fdc9be9644f01467e7e165330ea6640d8a06daca95
BLAKE2b-256 checksum
How to use checksums
dbad9006f6e51c6c817c3a1097ba048c935d31315762f48bf63708675fe7b2ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Security for yohou-mlflow 0.1.0a1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for yohou_mlflow-0.1.0a1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

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
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