kedro mlflow init: this command is needed to initalize your project. You cannot run any other commands before you run this one once. It performs 2 actions:
- creates a
mlflow.yml configuration file in your
- replace the
src/PYTHON_PACKAGE/run.py file by an updated version of the template. If your template has been modified since project creation, a warning will be raised. You can either run
kedro mlflow init --force to ignore this warning (but this will erase your
run.py) or set hooks manually.
init has two arguments:
--envwhich enable to specifiy another environment where the mlflow.yml should be created (e.g,
--forcewhich overrides the
mlflow.ymlif it already exists and replaces it with the default one. Use it with caution!
kedro mlflow ui: this command opens the mlflow UI (basically launches the
mlflow ui command )
If you provide the arguments at runtime, they wil take priority over the
mlflow.yml, e.g. if you have:
# mlflow.yml ui: localhost: "0.0.0.0" port: "5001"
kedro mlflow ui --port=5002
will open the ui on port 5002.