Skip to content

Fix 6 bugs in introductory-blog-sagemaker-core.ipynb#4876

Open
vikeshpandey wants to merge 3 commits intoaws:defaultfrom
vikeshpandey:fix/broken-notebook-sagemaker-core-issue-4872
Open

Fix 6 bugs in introductory-blog-sagemaker-core.ipynb#4876
vikeshpandey wants to merge 3 commits intoaws:defaultfrom
vikeshpandey:fix/broken-notebook-sagemaker-core-issue-4872

Conversation

@vikeshpandey
Copy link
Copy Markdown
Contributor

Summary

Fixes 6 bugs reported in #4872 for sagemaker-core/introductory-blog-sagemaker-core/introductory-blog-sagemaker-core.ipynb:

  • Bug 1: Removed incomplete s3_client = assignment (unused, caused confusion)
  • Bug 2: Added missing Endpoint.create() cell — sagemaker_endpoint was referenced but never assigned
  • Bug 3: Added missing import boto3 before boto3.client("s3") usage
  • Bug 4: Fixed incorrect S3 key path output/train/test.csvoutput/test/test.csv
  • Bug 5: Fixed endpoint response access res["Body"]res.body (sagemaker-core SDK returns an object, not a dict)
  • Bug 6: Defined missing print_performance_metrics() function

Closes #4872

- Remove incomplete `s3_client =` assignment (unused variable)
- Add missing `Endpoint.create()` cell before wait_for_status
- Add missing `import boto3` before boto3.client usage
- Fix S3 key path: output/train/test.csv -> output/test/test.csv
- Fix endpoint response access: res["Body"] -> res.body (sagemaker-core SDK)
- Define missing print_performance_metrics() function

Fixes aws#4872
@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug Report] Broken notebook introductory-blog-sagemaker-core.ipynb

1 participant