DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Machine Learning With AWS SageMaker

Machine Learning With AWS SageMaker

See how you can take out the complexity of machine learning with SageMaker.

Vaibhav Raizada user avatar by
Vaibhav Raizada
CORE ·
Mar. 21, 19 · Analysis
Like (3)
Save
Tweet
Share
6.51K Views

Join the DZone community and get the full member experience.

Join For Free

Businesses are demanding the use of AI and ML to get more from their existing processes and software applications. However, typical software development teams are not always staffed with data scientists or ML engineers. They have application developers who find hard-to-decipher ML algorithms but lack specialized programming skills. Amazon Web Services offers a service known as SageMaker, which takes out the complexity of machine learning.

Why AWS SageMaker

SageMaker is a managed service offering from AWS with the intent of simplifying the process of building, training, and deploying machine learning models. Typically, developers have to spend a lot of time and effort during various stages of incorporating machine learning in their applications. They have to first find the right sources to collate the training data and then find the best algorithm as per their need. They will also set up training environments and start training the model mostly through trial and error. And finally, they will deploy the model on production. But the peril does not end here; the team also has to scale and manage the production environment.

SageMaker takes away most of these troubles. Below is a screenshot of SageMaker Dashboard:

SageMaker

Given below are three major steps in creating a successful machine learning model:

Build

A good machine learning model requires large volumes of data — which is hard to collate — and a manual labeling process, which may take several weeks to complete. AWS offers SageMaker GroundTruth, which uses machine learning to automatically label data and results in considerable time savings. GroundTruth can also work hand-in-hand with manual labeling. This actually makes GroundTruth even better in labeling over a period of time. Where GroundTruth has high confidence is in the results it obtained previously. There, it will apply labels automatically on similar raw data, else it will forward the data for manual intervention.

SageMaker further provides a hosted notebook environment based on the Jupyter notebook format. This environment is used for the exploration and visualization of data. It also integrates with other AWS services like S3 and Glue.

SageMaker provides some highly performant algorithms like XGBoost, linear classification, and PCA or principal components analysis. It also supports reinforcement learning algorithms like Intel Coach and Ray RL. It provides pre-configured frameworks like TensorFlow, PyTorch, SparkML, Apache MXNet, etc.

Train

Training in SageMaker is very easy. Simply specify the S3 location containing data, choose the number and types of instances where the computing will be done, and launch the training by clicking a button in the AWS Console. SageMaker applies the algorithm you chose, builds the cluster of auto-scaling instances, and applies the chosen algorithm. 

Automatic Model Tuning is another salient feature of SageMaker. Typically, to train data, you need to provide a variety of data to the model and provide the hyperparameters. SageMaker helps you with the first part by applying machine learning to ascertain the kind and variety of data to apply. It learns the effect that a particular type of data has on the tuning of the model and then subsequently applies that learning on the data.

Usually, once a model has been trained it works well on the given platform. But what about a scenario where you may wish to deploy this model on another platform or cloud. This would subtle changes in the model to help adapt to the change in hardware of the platform. In such a scenario, SageMaker Neo helps you. It optimizes your model to work on different hardware configurations and processors.

Deploy

Deployment of your model using SageMaker gives you all the benefits of a Cloud provider — it is here that you truly utilize the Cloud power. Using the AWS Console, you deploy the model on a cluster of highly available compute instances that auto-scale as needed. Just like other AWS Compute services, SageMaker also takes care of monitoring the health of instances, ensures security by applying patches, and takes care of their maintenance. SageMaker integrates with CloudWatch where suitable metrics can be set up and alarms can be triggered so that timely action can be taken. It also connects with CloudWatch Logs, where you can see and debug your model's execution.

Compare SageMaker With Google and Azure

A quick comparison of ML services provided by major Cloud providers reveals the following:

  1. AWS SageMaker and IBM Watson ML Studio offer built-in algorithms while Azure ML Services and Google ML Engine do not.

  2. There is no local testing possible with SageMaker, and you will have to use the hosted environment only. For doing small tests and PoC, this can be an expensive proposition. Other Clouds make use of local compute also.

  3. While AWS SageMaker is an end-to-end service that does all of the building, training, and deploying, Google Cloud Datalab is only for building and training. It can, however, be used in conjunction with Google Cloud ML to complete the pipeline.

Machine learning AWS Data science Amazon Web Services

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Create Spider Chart With ReactJS
  • What Is API-First?
  • Key Elements of Site Reliability Engineering (SRE)
  • When to Choose Redpanda Instead of Apache Kafka

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: