Metrics

Metrics module

class smexperiments.metrics.SageMakerFileMetricsWriter(metrics_file_path=None)

Bases: object

Writes metric data to file.

log_metric(metric_name, value, timestamp=None, iteration_number=None)

Write a metric to file.

Parameters:
  • metric_name (str) – The name of the metric.
  • value (str) – The value of the metric.
  • timestamp (datetime) – Timestamp of the metric.
  • iteration_number (int) – Iteration number of the metric.
Raises:
close()

Closes the metric file.

exception smexperiments.metrics.SageMakerMetricsWriterException(message, errors=None)

Bases: Exception