aws / sagemaker-experiments

Experiment tracking and metric logging for Amazon SageMaker notebooks and model training.
Apache License 2.0
125 stars 36 forks source link

skip invalid numbers when logging a metric or parameter #161

Closed jkasiraj closed 2 years ago

jkasiraj commented 2 years ago

Issue #, if available: 126

Description of changes: log a warning and skip numbers that aren't serializable (nan, inf, -inf) when logging a metric or parameter

Testing done: unit tests

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

Tests

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.