-
From the tutorial code, train_mlflow_handler = MLFlowHandler(tracking_uri=Path(mlflow_dir).as_uri(), output_transform=lambda x: x)
train_mlflow_handler.attach(trainer)
val_mlflow_handler = MLFlowHandler(
tracking_uri=Path(mlflow_dir).as_uri(),
# no need to plot loss value, so disable per iteration output
output_transform=lambda x: None,
# fetch global epoch number from trainer
global_epoch_transform=lambda x: trainer.state.epoch,
)
val_mlflow_handler.attach(evaluator) Is there a way to stop MLflow after the trainer and evaluator have finished? Adding argument Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @whikwon, did you sett Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi @KumoLiu, |
Beta Was this translation helpful? Give feedback.
Hi @whikwon,
Please use
SupervisedTrainer
andValidationHandler
insteadcreate_supervised_trainer
which can consider validation as a part of training.An example here:
https://github.com/Project-MONAI/tutorials/blob/570b19e678e06aba26f53df8bc73f848ae2984ba/pathology/hovernet/training.py#L310