Skip to content

Updated xgboost_customer_churn.ipynb for SageMaker SDK v2 #1803

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

Merged
merged 2 commits into from
Nov 27, 2020
Merged

Updated xgboost_customer_churn.ipynb for SageMaker SDK v2 #1803

merged 2 commits into from
Nov 27, 2020

Conversation

eitansela
Copy link
Contributor

Notebook needed updates to be compatible with the v2 of the SageMaker SDK, which is the new Default SDK version in SageMaker.

Issue #, if available:

Description of changes:
Notebook needed updates to be compatible with the v2 of the SageMaker SDK, which is the new Default SDK version in SageMaker.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Notebook needed updates to be compatible with the v2 of the SageMaker SDK, which is the new Default SDK version in SageMaker.
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-examples-processing
  • Commit ID: d6202d5
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: amazon-sagemaker-examples-pr
  • Commit ID: d6202d5
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@vikeshpandey vikeshpandey self-requested a review November 27, 2020 08:23
@@ -49,7 +49,6 @@
"cell_type": "code",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the old import of SDK V1. also if you can, pls move all the imports in the beginning cells itself.


Reply via ReviewNB

@@ -49,7 +49,6 @@
"cell_type": "code",
Copy link
Contributor

@vikeshpandey vikeshpandey Nov 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add an import for sagemaker.inputs.TrainingInput

from sagemaker.inputs import TrainingInput


Reply via ReviewNB

@@ -49,7 +49,6 @@
"cell_type": "code",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why neo support code is removed? is Neo available in all AWS regions now?

also, please change the get_image_uri to the latest SDK v2 contract.


Reply via ReviewNB

@@ -49,7 +49,6 @@
"cell_type": "code",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you pls use a direct reference to CSVSerializer instead of using fully qualified import? just makes the code bit cleaner.


Reply via ReviewNB

1. Remove the old import of SDK V1.
2. Added imports for TrainingInput and CSVSerializer to keep code cleaner.
3. The check_neo_region was removed since it is not supported in SDK v2, and from Sep 26, 2019, Amazon SageMaker Neo is Available in 12 additional Regions.
5. get_image_uri in Neo compilation was removed since it is not needed at all.
5. Moved the print of cutoffs, and costs to a diffferent cell since it used to throw an error on the first run.
@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-examples-processing
  • Commit ID: 1497d47
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: amazon-sagemaker-examples-pr
  • Commit ID: 1497d47
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Contributor

@aaronmarkham aaronmarkham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM... can you resolve the other comments, so I can merge this?

@eitansela
Copy link
Contributor Author

@aaronmarkham
I resolved all the other comments @vikeshpandey wrote in the code review.

@aaronmarkham aaronmarkham merged commit 5feab2c into aws:master Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants