import java.nio.file.Paths val run = mlflowContext.startRun("run") // Log a parameter (key-value pair) run.logParam("param1", "5") // Log a metric; metrics can be updated throughout the run run.logMetric("foo", 2.0, 1) run.logMetric("foo", 4.0, 2) run.logMetric("foo", 6.0, 3) new PrintWriter("/tmp/output.txt") { write("Hello, world!") ; close } run.logArtifact(Paths.get("/tmp/output.txt")) run.endRun()
MLflow quickstart: tracking
This is a notebook based on the MLflow quickstart example. This quickstart: