Skip to contents

Logs a metric for a run. A metric is a key-value pair (string key, float value) with an associated timestamp. Examples include the various metrics that represent ML model accuracy. A metric can be logged multiple times.

Usage

log_experiment_metric(
  client,
  key,
  value,
  timestamp,
  run_id = NULL,
  run_uuid = NULL,
  step = NULL
)

experimentsLogMetric(
  client,
  key,
  value,
  timestamp,
  run_id = NULL,
  run_uuid = NULL,
  step = NULL
)

Arguments

client

Required. Instance of DatabricksClient()

key

Required. Name of the metric.

value

Required. Double value of the metric being logged.

timestamp

Required. Unix timestamp in milliseconds at the time metric was logged.

run_id

ID of the run under which to log the metric.

run_uuid

Deprecated, use run_id instead. ID of the run under which to log the metric.

step

Step at which to log the metric.