logging
The logging config group allows to modify the logging behaviour of mml. Next to sum options at the top level, there
are three sub-configurations:
exp_loggerwill determine the experiment logger used bylightning
notifierwill determine whether and how certain events will be messaged
renderwill determine the rendering backend for logging
default
The default top level configuration is stored in log.yaml.
- highlight_text
- default: True
enables the highlight text feature of the base AbstractBaseScheduler, colouring specific parts of logs
see
highlight_text()
- capture_warnings
- default: True
capture emitted python warnings and log them as well
- samples
- default: 0
logs example images with prediction and reference to oversee training progress (once per epoch and phase)
examples will be logged only to tensorboard logger currently
- cm
- default: false
whether to log the epochs confusion matrix
confusion matrix will be logged only to tensorboard logger currently
exp_logger
Currently mml only provides a config for tensorboard.
tensorboard
- _target_
- default:
TensorBoardLogger see lighnting docs
- default:
- save_dir
- default: ${proj_path}/tensorboard
the directory to store the logs in (${proj_path} will be replaced by hydra
- name
- default: ${now:%Y-%m-%d}/${now:%H-%M-%S}
the experiment sub-directory
will be interpolated by hydra to current time
- version
- default: None (literally)
to be specified during runtime
this will be the
active_step_namingof the schedulersee
create_trainer()for more on this
notifier
mml ships with two notifiers, but can easily be extended. There are three configuration files: none.yaml (the
default, which does not provide any notifier), slack.yaml which allows notification via Slack and email.yaml for
email notification. Multiple notifiers can be combined via logging/notifier=[email,slack]. For each notifier you
can independently determine the events to send notifications (e.g. logging.notifier.slack.on_start=true).
slack
- slack
- _target_
- default:
SlackNotifier a notifier that sends slack messages
- default:
- on_start
- default: False
whether to send messages on mml start
- on_end
- default: False
whether to send messages on mml end
- on_failure
- default: False
whether to send messages on mml failure
email
- _target_
- default:
EMailNotifier a notifier that sends email messages
- default:
- on_start
- default: False
whether to send messages on mml start
- on_end
- default: False
whether to send messages on mml end
- on_failure
- default: False
whether to send messages on mml failure
render
The backend for rendering the logs. Can be either colorlog
or rich. The default is colorlog and support for rich might not be as
throughout as for colorlog. Change the renderer via logging/render=rich.