Skip to content

get_default_pip_requirements

yohou_mlflow.get_default_pip_requirements()

Return the pip requirements a saved model gets unless the caller overrides them.

Returns

Type Description
list of str

yohou-mlflow, yohou, scikit-learn, polars and skops, each pinned to its installed version.

Source Code

Source code in src/yohou_mlflow/_persistence.py
def get_default_pip_requirements() -> list[str]:
    """Return the pip requirements a saved model gets unless the caller overrides them.

    Returns
    -------
    list of str
        yohou-mlflow, yohou, scikit-learn, polars and skops, each pinned to its
        installed version.
    """
    return [_get_pinned_requirement(name, module=module) for name, module in _PINNED_PACKAGES]