I am new to MLflow. I was trying to use it in Jupyter. As part of the quickstart, I ran the following code:
import os
from mlflow import log_metric, log_param, log_artifact
if __name__ == "__main__":
# Log a parameter (key-value pair)
log_param("param1", 5)
# Log a metric; metrics can be updated throughout the run
log_metric("foo", 1)
log_metric("foo", 2)
log_metric("foo", 3)
# Log an artifact (output file)
with open("output.txt", "w") as f:
f.write("Hello world!")
log_artifact("output.txt")
which ran without any problems. However when I then typed in mlflow ui
, I got the error: invalid syntax. What could I be doing wrong?