Follow-up of MLflowCallback
See original GitHub issueMotivation
Thanks to the great improvement by https://github.com/optuna/optuna/pull/2670, optuna provides a smoother connection to MLFLow via MLflowCallback
. But we still have a TODO list to improve the codebase and its feature mentioned in the review of https://github.com/optuna/optuna/pull/2670.
TODO tasks discussed in https://github.com/optuna/optuna/issues/2788#issuecomment-898890114 to close this issue
- General code/docstring fixes mentioned in #2670 TODO list (https://github.com/optuna/optuna/pull/2855)
- Introduction of multi-objective support (https://github.com/optuna/optuna/pull/2863)
- Refactoring interface to be more similar to WeightsAndBiasesCallback (+ decoupling study name from mlflow experiment) (https://github.com/optuna/optuna/pull/2912)
Please see also the following Description
for more detailed contexts.
Description
Please see the discussion in the review. But we can separately work on this issue as follows:
- support multi-objective https://github.com/optuna/optuna/pull/2670#discussion_r633204507
- improve the docstring.
- improve the tag truncation https://github.com/optuna/optuna/pull/2670#discussion_r650478298
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
MLflow Tracking — MLflow 2.0.1 documentation
MLflow Tracking lets you log and query experiments using Python, REST, R API, and Java API APIs.
Read more >Callbacks - Hugging Face
Callbacks are objects that can customize the behavior of the training loop in the PyTorch Trainer (this feature is not yet implemented in...
Read more >optuna.integration.MLflowCallback - Read the Docs
Callback to track Optuna trials with MLflow. This callback adds relevant information that is tracked by Optuna to MLflow.
Read more >Experiment Tracking Template with Keras and Mlflow
Sign up for Medium and get an extra one ... Experiment Tracking Template with Keras and Mlflow ... mlflow ui. and obtain the...
Read more >How to Use MLflow To Reproduce Results and Retrain Saved ...
In part 2 of our series on MLflow blogs, we demonstrated how to use MLflow to track experiment results for a Keras network...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @rafarui thank you for your feedback! Indeed, when we introduce
WeightsAndBiasesCallback
recently, it haswandb_kwargs
that are used for the initialisation of wandb. So we can add a similar argument toMLflowCallback
for a more flexible interface as you mentioned.If I can suggest one more point.
Optuna is setting the experiment name for the user via the
initialize_experiment(self, study: optuna.study.Study)
. I think we should let the user choose if he/she wants to create an experiment.An experiment name is not necessarily the study name. I can have many studies inside the same experiment. If you are not using the in-memory database you will have problems. In my use case, studies are unique identified to be able to track them inside one mlflow experiment. Also, this can be a problem If you are using databricks. The experiment name is defined in databricks and not necessarily is the same as the study name. I can have many studies in one single experiment.
I am using this, so I might have a proposal soon.