Tips

Tips for using mlop

The logger supports automatic grouping by using a / in the log name.

group = "validation"
run.log(f"{group}/name", value)

:::danger Caution Instead of using run.log, you may also use mlop.log to log metrics. However, note that this behavior implicitly defines run to be the latest started process in the mlop.ops group and therefore may not be what you are looking for. :::

To retrieve the active runs, you can call mlop.ops which returns an array of all the runs.