openfl.utilities.logs.write_metric

openfl.utilities.logs.write_metric(node_name, task_name, metric_name, metric, round_number)

Write metric callback.

This function logs a metric to TensorBoard.

Parameters:
  • node_name (str) – The name of the node.

  • task_name (str) – The name of the task.

  • metric_name (str) – The name of the metric.

  • metric (float) – The value of the metric.

  • round_number (int) – The current round number.