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

[doc] fix log_table parameter when using DataFrame #177

Closed tuliocasagrande closed 1 year ago

tuliocasagrande commented 1 year ago

Issue #, if available: Got the following error when trying to use my_tracker.log_table('SampleData', df):

ValueError: Table values should be list. i.e. {"x": [1,2,3]}, instead was <class 'pandas.core.series.Series'>

Description of changes: Changed documentation to my_tracker.log_table('SampleData', data_frame=df), passing the data_frame parameter correctly.

Testing done:

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.

tuliocasagrande commented 1 year ago

Just noticed SageMaker Experiments is now fully integrated with the SageMaker Python SDK: https://docs.aws.amazon.com/sagemaker/latest/dg/experiments-additional-sdk.html.