mlflow_register_external_observer: Register an external MLflow observer

Description Usage Arguments Examples

View source: R/tracking-observer.R

Description

Registers an external MLflow observer that will receive a 'register_tracking_event(event_name, data)' callback on any model tracking event such as "create_run", "delete_run", or "log_metric". Each observer should have a 'register_tracking_event(event_name, data)' callback accepting a character vector 'event_name' specifying the name of the tracking event, and 'data' containing a list of attributes of the event. The callback should be non-blocking, and ideally should complete instantaneously. Any exception thrown from the callback will be ignored.

Usage

1

Arguments

observer

The observer object (see example)

Examples

1
2
3
4
5
6
7
8
library(mlflow)

observer <- structure(list())
observer$register_tracking_event <- function(event_name, data) {
  print(event_name)
  print(data)
}
mlflow_register_external_observer(observer)

mlflow documentation built on Sept. 6, 2021, 9:06 a.m.