Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module 7 - Training job #253

Open
kristofrk opened this issue Apr 20, 2021 · 3 comments
Open

Module 7 - Training job #253

kristofrk opened this issue Apr 20, 2021 · 3 comments

Comments

@kristofrk
Copy link

I get the following error when executing the Jupyter notebook:

ClientError: An error occurred (AccessDeniedException) when calling the CreateTrainingJob operation: User: arn:aws:sts::395190607265:assumed-role/MysfitsNotbookRole/SageMaker is not authorized to perform: sagemaker:CreateTrainingJob on resource: arn:aws:sagemaker:us-east-1:395190607265:training-job/knn-2021-04-20-19-44-27-275 with an explicit deny

I am using a starter account for my graduate cloud course. Sagemaker is allowed, and the training instance type seems allowed as well.

@kristofrk
Copy link
Author

When executing the notebook on my 'full' account, I can train the model, but i receive an attribute error when setting up the endpoint.

@kristofrk
Copy link
Author

It turns out that I need to comment out the following line in cell 8 (setting up the endpoint)

knn_predictor.content_type = 'text/csv'

I get many warnings messages about out-dated versions.

@em-xqm
Copy link

em-xqm commented May 5, 2021

yes my fix was to :
comment out
#knn_predictor.content_type = 'text/csv'

change this line :
predictor.predict(batch)
to ...
predictor.predict(batch, initial_args={'ContentType': 'text/csv'})

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

No branches or pull requests

2 participants