[FR] add a "name" parameter when creating runs from `client.create_run()`
See original GitHub issueWillingness to contribute
The MLflow Community encourages new feature contributions. Would you or another member of your organization be willing to contribute an implementation of this feature (either as an MLflow Plugin or an enhancement to the MLflow code base)?
- Yes. I can contribute this feature independently.
- Yes. I would be willing to contribute this feature with guidance from the MLflow community.
- No. I cannot contribute this feature at this time.
Proposal Summary
When creating a run using the mlflow client, it will be useful to provide a custom name.
client = MlflowClient()
experiment_id = "0"
run = client.create_run(experiment_id, tags=tags, name="My custom run name")
Motivation
- What is the use case for this feature?
I run hyper-parameter search with ray[tune] package using their MLflow Autologging and then when I analyze metric plots it’s hard to tell runs apart (screenshot attached). Their code uses mlflow’s client.create_run()
- Why is this use case valuable to support for MLflow users in general?
It will eliminate the need for manual clicking on each run to find out its details.
- Why is it currently difficult to achieve this use case? (please be as specific as possible about why related MLflow features and components are insufficient)
Currently there’s no option of adding a custom run name, whilst the option is present in mlflow.start_run().
What component(s), interfaces, languages, and integrations does this feature affect?
Components
-
area/artifacts: Artifact stores and artifact logging -
area/build: Build and test infrastructure for MLflow -
area/docs: MLflow documentation pages -
area/examples: Example code -
area/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registry -
area/models: MLmodel format, model serialization/deserialization, flavors -
area/projects: MLproject format, project running backends -
area/scoring: MLflow Model server, model deployment tools, Spark UDFs -
area/server-infra: MLflow Tracking server backend -
area/tracking: Tracking Service, tracking client APIs, autologging
Interfaces
-
area/uiux: Front-end, user experience, plotting, JavaScript, JavaScript dev server -
area/docker: Docker use across MLflow’s components, such as MLflow Projects and MLflow Models -
area/sqlalchemy: Use of SQLAlchemy in the Tracking Service or Model Registry -
area/windows: Windows support

Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:9 (5 by maintainers)

Top Related StackOverflow Question
@Rusteam thank you for filing this, and, @tahesse, thank you for responding. We have merged https://github.com/mlflow/mlflow/pull/5187 to address this issue. Thank you for using MLflow!
Hi @Rusteam , apologies for the delay.
MlflowClient.create_run()now accepts therun_nameargument: https://github.com/mlflow/mlflow/blob/37f4bbe69e975a505a0b61bc7509bad3f784efdf/mlflow/tracking/client.py#L224. Thank you for using MLflow!