lazypredict.integrations Package¶
lazypredict.integrations.mlflow¶
mlflow ¶
MLflow integration helpers for LazyPredict.
RunTracker ¶
Best-effort MLflow tracking during one fit().
Tracking never changes the benchmark: the first MLflow error is logged and turns tracking off for the rest of the fit, so an unreachable server or a rejected metric cannot make models fail, and every run that was started is ended exactly once.
Source code in lazypredict/integrations/mlflow.py
call ¶
Run one tracking call; False if tracking is off or the call failed.
Source code in lazypredict/integrations/mlflow.py
start ¶
Start a nested run and log params; True if a run was started.
Source code in lazypredict/integrations/mlflow.py
end ¶
End the run start() started, even if tracking was turned off since.
is_mlflow_tracking_enabled ¶
Check if MLflow tracking is enabled via the MLFLOW_TRACKING_URI environment variable.
Source code in lazypredict/integrations/mlflow.py
setup_mlflow ¶
Point MLflow at MLFLOW_TRACKING_URI when that variable is set.
Autologging is deliberately not enabled: it is a process-wide setting that would change how the user's own code is logged.
Returns:
| Type | Description |
|---|---|
bool
|
True if MLflow was successfully configured, False otherwise. |
Source code in lazypredict/integrations/mlflow.py
start_run ¶
Start a run for one model, nested under the caller's run if one is active.
log_sklearn_model ¶
log_sklearn_model(mlflow_module: Any, model: Any, artifact_name: str, signature: Optional[Any] = None) -> None
Log model as an artifact of the active run without registering it.
MLflow 3 names the artifact with name=; MLflow 2 only accepts
artifact_path=.
Source code in lazypredict/integrations/mlflow.py
Module contents¶
integrations ¶
Optional integrations for LazyPredict.