Skip to content

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

@jxuamazon

Description

@jxuamazon

Link to the notebook
sagemaker-core/introductory-blog-sagemaker-core/introductory-blog-sagemaker-core.ipynb

Describe the bug

  1. broken code in block 3 . "s3_client = " is incomplete and is not used in the rest of the notebook

  2. missing code block , in create endpoint configuration for real-time inference
    sagemaker_endpoint = Endpoint.create(
    endpoint_name=endpoint_name,
    endpoint_config_name=endpoint_config.get_name(),
    )

  3. In test live endpoint
    Need to "import boto3"

4 In test live endpoint
Key = "sagemaker-core-intro-blog/processing/output/train/test.csv", should be
Key = "sagemaker-core-intro-blog/processing/output/test/test.csv",

  1. In Invoke the endpoint

result = res['body'].read().decode("utf-8") should be
result = res.body.read().decode("utf-8")

  1. In invoke the endpoint
    print_performance_metrics is not defined.

To reproduce
A clear, step-by-step set of instructions to reproduce the bug.

Logs
If applicable, add logs to help explain your problem.
You may also attach an .ipynb file to this issue if it includes relevant logs or output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions