.. _tune-mlflow: Using MLFlow with Tune ====================== `MLFlow `_ is an open source platform to manage the ML lifecycle, including experimentation, reproducibility, deployment, and a central model registry. It currently offers four components, including MLFlow Tracking to record and query experiments, including code, data, config, and results. .. image:: /images/mlflow.png :height: 80px :alt: MLflow :align: center :target: https://www.mlflow.org/ Ray Tune currently offers two lightweight integrations for MLFlow Tracking. One is the :ref:`MLFlowLoggerCallback `, which automatically logs metrics reported to Tune to the MLFlow Tracking API. The other one is the :ref:`@mlflow_mixin ` decorator, which can be used with the function API. It automatically initializes the MLFlow API with Tune's training information and creates a run for each Tune trial. Then within your training function, you can just use the MLFlow like you would normally do, e.g. using ``mlflow.log_metrics()`` or even ``mlflow.autolog()`` to log to your training process. Please :doc:`see here ` for a full example on how you can use either the MLFlowLoggerCallback or the mlflow_mixin. MLFlow AutoLogging ------------------ You can also check out :doc:`here ` for an example on how you can leverage MLflow autologging, in this case with Pytorch Lightning MLFlow Logger API ----------------- .. _tune-mlflow-logger: .. autoclass:: ray.tune.integration.mlflow.MLFlowLoggerCallback :noindex: MLFlow Mixin API ---------------- .. _tune-mlflow-mixin: .. autofunction:: ray.tune.integration.mlflow.mlflow_mixin :noindex: