“Challenges faced to find a solution where I can perform all machine learning activities”. I have found the solution as Amazon Sagemaker Studio in which it is easy to train, build and deploy machine learning models. In terms of cost and security perspective, it's cheaper and highly secure for users. And can easily integrate and migrate with other AWS services.
Amazon SageMaker is a cloud machine-learning platform that was launched in November 2017. SageMaker enables developers to create, train, and deploy machine-learning (ML) models in the cloud. SageMaker also enables developers to deploy ML models on embedded systems and edge-devices.
Amazon SageMaker Studio provides a single, web-based visual interface where you can perform all ML development steps, improving data science team productivity by up to 10x. SageMaker Studio gives you complete access, control, and visibility into each step required to build, train, and deploy models. You can quickly upload data, create new notebooks, train and tune models, move back and forth between steps to adjust experiments, compare results, and deploy models to production all in one place, making you much more productive. All ML development activities including notebooks, experiment management, automatic model creation, debugging, and model and data drift detection can be performed within SageMaker Studio.
In this post, you will get to know how to configure sagemaker studio and create a notebook in the sagemaker studio app. Here I have configured a sagemaker studio domain and user for sagemaker studio. And running an amazon sample project in jupyter notebook. Also having logs in cloudwatch.
Prerequisites
You’ll need an Amazon Simple Storage Service for this post. Getting started with Amazon Simple Storage Service provides instructions on how to create a bucket in simple storage service. For this blog, I assume that I have created a s3 bucket.
Architecture Overview
The architecture diagram shows the overall deployment architecture with data flow, amazon sagemaker and s3 bucket.
Solution overview
The blog post consists of the following phases:
- Configuration of SageMaker Studio Domain
- Add of User in SageMaker Studio and Creation of Notebook in Amazon SageMaker Studio App
- Monitoring of S3 Bucket and Logs in Cloudwatch I have a s3 bucket created as below →
Phase 1: Configuration of SageMaker Studio Domain
- Open the SageMaker Studio console, get started creating a sagemaker domain as choose standard setup and click on configure button.
- In general settings, Choose IAM as authentication and create a new role in permission. While creating a new role, we can specify the bucket created or choose any s3 bucket option. Then click on create role. In the network and storage section, choose default vpc with any subnet and default security group. Choose the public internet only option. Leave the encryption option.
- In the notebook sharing configuration section, enable the sharing option and leave all options as default. And click on the submit button. Once the domain is created, we can proceed for user creation in it.
Phase 2: Add of User in SageMaker Studio and Creation of Notebook in Amazon SageMaker Studio App
- Create a user in sagemaker studio by clicking on add user button. Give the user name as studio-gargee-demo and leave the default execution role. And leave all other options as default and create a user. Once the user is created, launch the studio app by selecting the launch app dropdown option. We navigate to the Amazon sagemaker studio jupyter server app. And we can also edit the sagemaker domain settings.
- In jupyter app, Goto Git option and clone a repository as amazon sagemaker examples. Check various options available in the app such as to create a new console or project, to see whether the project is running, how to share the running snapshots, how to change the instance type and so on in below screenshots. Also how create a directory in a notebook and how to close and shutdown it.
Phase 3: Monitoring of S3 Bucket and Logs in Cloudwatch
Clean-up
Pricing
I review the pricing and estimated cost of this example.
Cost of Amazon SageMaker →
$0.00 for Studio-Notebook:ml.t3.medium per hour under monthly free tier = 0.072 Hrs = $0.0
$0.054 for Studio-Notebook:ml.t3.medium per hour = 0 Hrs = $0.0
Total = $(0.0+0.0) = $0.0
Cost of Simple Storage Service = $0.1
Cost of Cloudwatch = $0.0
Total Cost = $(0.0+0.1+0.0) = $0.1
Summary
In this post, I showed “how to configure sagemaker studio and create a notebook in the sagemaker studio app”.
For more details on Amazon SageMaker Studio, Checkout Get started Amazon SageMaker Studio, open the Amazon SageMaker Studio Console. To learn more, read the Amazon SageMaker Studio Documentation.
Thanks for reading!
Connect with me: Linkedin
Top comments (0)