normalize_mlflow_store_values#
- scikitplot.mlflow.normalize_mlflow_store_values(*, backend_store_uri, default_artifact_root, base_dir)[source]#
Normalize local store values for consistent multi-script usage.
Deterministic normalization rules#
If backend_store_uri starts with “sqlite:///” => normalize the filesystem path to absolute.
Else if backend_store_uri is a local path => normalize to absolute.
For default_artifact_root: if it is a local path => normalize to absolute. Otherwise, leave as-is (remote schemes like s3://, gs://, dbfs:/, http(s)://).
This ensures
train.py,hpo.py,predict.pybehave consistently regardless of CWD.- Parameters:
- backend_store_uristr or None
Backend store URI or path.
- default_artifact_rootstr or None
Default artifact root URI or path.
- base_dirpathlib.Path
Base directory used to resolve relative paths.
- Returns:
- tuple[str or None, str or None]
Normalized (backend_store_uri, default_artifact_root).