Feat/mlflow nested run support#10
Open
illorens wants to merge 2 commits into
Open
Conversation
hlasco
requested changes
Jun 5, 2026
| self, | ||
| experiment_name: str | None = None, | ||
| run_name: str | None = None, | ||
| parent_run_name: str | None = None, |
Collaborator
There was a problem hiding this comment.
There's no guarantee than run names are unique, I think you should run_id instead of run name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add nested run support to MLflow logger
Description
This PR extends
MLflowLoggerwith support for nested MLflow runs, allowing child runs to be logged under a shared parent run. It also adds the ability to attach tags to both parent and child runs.The logger now operates in two modes:
parent_run_name=None): existing behaviour is preserved — reuses an active run if one exists, otherwise creates a new run namedrun_name.parent_run_name=<name>): creates or reuses a parent run namedparent_run_name, then starts a nested child run namedrun_name. All metrics and parameters are logged to the child run.New constructor parameters:
parent_run_name— enables nested mode when setrun_tags— tags applied to the child (or standard) runparent_tags— tags applied to the parent run in nested modeChecklist