aws / aws/amazon-sagemaker-examples

object2vec_movie_recommendation.ipynb failed CI

Open
#2,396 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
11k
Forks
7k
Avg merge
8h 29m
Merged PRs (30d)
8

Description

Link to the notebook:
https://github.com/aws/amazon-sagemaker-examples/blob/master/introduction_to_amazon_algorithms/object2vec_movie_recommendation/object2vec_movie_recommendation.ipynb

Error:

---------------------------------------------------------------------------
Exception encountered at "In [18]":
---------------------------------------------------------------------------
ParamValidationError Traceback (most recent call last)
in
9 fname = '{}_r.jsonl'.format(data_name)
10 data_path = os.path.join('s3://', bucket, pre_key, fname)
---> 11 s3_client.upload_file(fname, bucket, os.path.join(pre_key, fname))
12 input_paths[data_name] = s3_input(data_path, distribution='ShardedByS3Key', content_type='application/jsonlines')
13 print('Uploaded {} data to {} and defined

[...]

Invalid bucket name "": Bucket name must match the regex "^[a-zA-Z0-9.\-_]{1,255}$" or be an ARN matching the regex "^arn:(aws).*:s3:[a-z\-0-9]+:[0-9]{12}:accesspoint[/:][a-zA-Z0-9\-]{1,63}$|^arn:(aws).*:s3-outposts:[a-z\-0-9]+:[0-9]{12}:outpost[/:][a-zA-Z0-9\-]{1,63}[/:]accesspoint[/:][a-zA-Z0-9\-]{1,63}$"

Contributor guide

Open the contributing guide

Research direction

Open introduction_to_amazon_algorithms/object2vec_movie_recommendation/object2vec_movie_recommendation.ipynb and inspect cell In [18], where s3_client.upload_file raises the invalid bucket-name error. Run the notebook or its CI check to trace how the bucket value is supplied; done means the example no longer passes the placeholder value and the notebook completes CI successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, jupyter-notebook
Domain
cloud, machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.