aws / amazon-sagemaker-examples

Example 📓 Jupyter notebooks that demonstrate how to build, train, and deploy machine learning models using 🧠 Amazon SageMaker.
https://sagemaker-examples.readthedocs.io
Apache License 2.0
10.14k stars 6.78k forks source link

Missing code in - tensorflow_iris_dnn_classifier_using_estimators.ipynb #376

Closed C24IO closed 5 years ago

C24IO commented 6 years ago

We have an error that the S3 Bucket is not spelled correctly flagged by a regex error -

At this line - train_data_location = 's3://sagemaker-sample-data-{}/tensorflow/iris'.format(region)

It was fixed by -

from sagemaker import get_execution_role import sagemaker

session = sagemaker.Session() bucket = session.default_bucket()

Bucket location to save your custom code in tar.gz format.

custom_code_upload_location = 's3://{}/customcode/tensorflow_iris'.format(bucket)

Bucket location where results of model training are saved.

model_artifacts_location = 's3://{}/artifacts'.format(bucket)

IAM execution role that gives SageMaker access to resources in your AWS account.

role = get_execution_role()

djarpin commented 6 years ago

Hi @C24IO - I wasn't able to replicate an error with this example notebook. Could you provide the actual error message you received?

  1. Did you update the "\<bucket-name>" placeholder in the first code cell and still receive the error?
  2. Are you working from a notebook instance where S3 access has been limited?

Thanks.

C24IO commented 6 years ago

Hello @djarpin Error uncovered while working through the lab yesterday with a couple of attendees of ML workshop. I will try to recreate by ignoring the "<>" replacement and let you know. Thanks!

laurenyu commented 5 years ago

closing due to inactivity. feel free to reopen if necessary!