Skip to content

1014-mlflow-handler-tutorial #1019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 40 commits into from
Dec 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
032151e
add a tutorial of mlflow handler
binliunls Oct 28, 2022
a2710af
complete first version of tutorial
binliunls Oct 28, 2022
76b2294
remove mlflow log in mlflow handler tutorial
binliunls Oct 28, 2022
efa6445
add explanation at the begining of mlflow handler tutorial
binliunls Nov 1, 2022
aa4755b
format mlflow handler tutorial
binliunls Nov 1, 2022
c60c9a0
remove a necessary parameter in mlflow handler tutorial
binliunls Nov 1, 2022
1f8edd9
add a readme for mlflow handler tutorial
binliunls Nov 1, 2022
025b2eb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 1, 2022
950908a
update with artifacts log and parameter log
binliunls Nov 2, 2022
5617646
rename files in experiment management tutorial
binliunls Nov 2, 2022
f5a8209
add comment on mlflow handler and add how to record images
binliunls Nov 2, 2022
8f6589b
add readme about experiment management tutorial
binliunls Nov 2, 2022
3165434
add new lines at end of experiment management files
binliunls Nov 2, 2022
277b7f3
Merge branch '1014-mlflow-handler-tutorial' of https://github.com/bin…
binliunls Nov 2, 2022
464120e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 2, 2022
a7599bd
Merge branch 'Project-MONAI:main' into 1014-mlflow-handler-tutorial
binliunls Nov 30, 2022
e275f2e
add a new tutorial for using mlflow in monai workflow
binliunls Dec 2, 2022
b99bf20
fix some code format issue
binliunls Dec 2, 2022
f0e6d12
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 2, 2022
a8efdca
udpate readme files with mlflow experiment management
binliunls Dec 2, 2022
3d64488
rename the readme file in experiment management
binliunls Dec 2, 2022
f20bec2
move the import part to the begining of the use mlflow in monai workf…
binliunls Dec 2, 2022
aba1b0b
Merge branch '1014-mlflow-handler-tutorial' of https://github.com/bin…
binliunls Dec 2, 2022
997cd35
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 2, 2022
738a1a8
Merge branch 'Project-MONAI:main' into 1014-mlflow-handler-tutorial
binliunls Dec 2, 2022
0f181a1
update default images in experiment management tutorial
binliunls Dec 9, 2022
bdd521c
uploaded the default experiment management pics to turtorial
binliunls Dec 9, 2022
f9db32f
delete the orignal experiment management tutorial
binliunls Dec 9, 2022
920a9b1
update readme with the new experiment management tutorial
binliunls Dec 9, 2022
20adb7d
fix some type issues and file name in experiment management tutorial
binliunls Dec 9, 2022
4c18e6b
Merge branch 'main' into 1014-mlflow-handler-tutorial
binliunls Dec 9, 2022
5863950
rename the experiment management tutorial with new name
binliunls Dec 9, 2022
2d86337
Merge branch '1014-mlflow-handler-tutorial' of https://github.com/bin…
binliunls Dec 9, 2022
f4c1575
fix the format issue of mlflow experiment management tutorial
binliunls Dec 9, 2022
483d3a3
update bundle_integrate_mlflow according to comments
binliunls Dec 12, 2022
fd8a4fe
move all images of bundle_integrate_mlflow tutorial into tutorial itself
binliunls Dec 12, 2022
d6a24ad
remove the redundant period in experiment management readme.
binliunls Dec 12, 2022
3ef4146
change the cell order of bundle_integrate_mlflow tutorial
binliunls Dec 12, 2022
51fa263
fix the max epochs number according to the notebook
binliunls Dec 12, 2022
9efb105
add the attribute list of what is recorded in mlflow
binliunls Dec 12, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ This is example walks through using a Triton Server and Python client using MONA
An example of experiment management with [Aim](https://aimstack.io/aim-monai-tutorial/), using 3D spleen segmentation as an example.
##### [MLFlow](./experiment_management/spleen_segmentation_mlflow.ipynb)
An example of experiment management with [MLFlow](https://www.mlflow.org/docs/latest/tracking.html), using 3D spleen segmentation as an example.
##### [MONAI bundle integrates MLFlow](./experiment_management/bundle_integrate_mlflow.ipynb)
An example shows how to easily enable and customize the MLFlow for experiment management in MONAI bundle.

#### <ins>**Federated Learning**</ins>
##### [NVFlare](./federated_learning/nvflare)
Expand Down
7 changes: 7 additions & 0 deletions experiment_management/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Overview
This directory shows how to do experiment management in MONAI.

## Files
1. spleen_segmentation_aim.ipynb: an example about how to deploy aim experiment management in pytorch code.
2. spleen_segmentation_mlflow.ipynb: an example about how to deploy mlflow experiment management in pytorch code.
3. bundle_integrate_mlflow.ipynb: an example shows how to easily enable and customize the MLFlow for experiment management in MONAI bundle.
376 changes: 376 additions & 0 deletions experiment_management/bundle_integrate_mlflow.ipynb

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions experiment_management/mlflow_example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"handlers_id": {
"trainer": {
"id": "train#trainer",
"handlers": "train#handlers"
}
},
"configs": {
"tracking_uri": "$@output_dir + '/mlruns'",
"experiment_name": "monai_experiment",
"run_name": "test1",
"is_not_rank0": "$torch.distributed.is_available() and torch.distributed.is_initialized() and torch.distributed.get_rank() > 0",
"trainer": {
"_target_": "MLFlowHandler",
"_disabled_": "@is_not_rank0",
"tracking_uri": "@tracking_uri",
"experiment_name": "@experiment_name",
"run_name": "@run_name",
"iteration_log": true,
"epoch_log": true,
"tag_name": "train_loss",
"output_transform": "$monai.handlers.from_engine(['loss'], first=True)",
"experiment_param": "${'backbone':'unet', 'norm':'Batch'}"
}
}
}