SlideShare a Scribd company logo
Session 3
Dr. Ryan Rad
Professional Machine Learning Engineer
Where are we on our journey
1
Session 3 Content Review
2
Extra Information
4
Next Steps
5
Sample Question Review
3
6 Q&A
Where are we on our
journey
Professional Machine Learning Certification
Learning Journey Organized by Google Developer Groups Surrey co hosting with GDG Seattle
Session 1
Feb 24, 2024
Virtual
Session 2
Mar 2, 2024
Virtual
Session 3
Mar 9, 2024
Virtual
Session 4
Mar 16, 2024
Virtual
Session 5
Mar 23, 2024
Virtual
Session 6
Apr 6, 2024
Virtual Review the
Professional ML
Engineer Exam
Guide
Review the
Professional ML
Engineer Sample
Questions
Go through:
Google Cloud
Platform Big Data
and Machine
Learning
Fundamentals
Hands On Lab
Practice:
Perform
Foundational Data,
ML, and AI Tasks in
Google Cloud
(Skill Badge) - 7hrs
Build and Deploy ML
Solutions on Vertex
AI
(Skill Badge) - 8hrs
Self
study
(and
potential
exam)
Lightning talk +
Kick-off & Machine
Learning Basics +
Q&A
Lightning talk +
GCP- Tensorflow &
Feature Engineering
+ Q&A
Lightning talk +
Enterprise Machine
Learning + Q&A
Lightning talk +
Production Machine
Learning with
Google Cloud + Q&A
Lightning talk + NLP
& Recommendation
Systems on GCP +
Q&A
Lightning talk + MOPs
& ML Pipelines on GCP
+ Q&A
Complete course:
Introduction to AI and
Machine Learning on
Google Cloud
Launching into
Machine Learning
Complete course:
TensorFlow on Google
Cloud
Feature
Engineering
Complete course:
Machine Learning in
the Enterprise
Hands On Lab
Practice:
Production Machine
Learning Systems
Computer Vision
Fundamentals with
Google Cloud
Complete course:
Natural Language
Processing on Google
Cloud
Recommendation
Systems on GCP
Complete course:
ML Ops - Getting
Started
ML Pipelines on Google
Cloud
Check Readiness:
Professional ML
Engineer Sample
Questions
Session 3 Content Review
Session 3
Study Group
Model Development
- Build a model.
- Train a model.
- Test a model.
- Scale model training and serving.
- Model Explainability
ML Processes
ML Processes
Underfit vs Overfit
Model Complexity vs Error
Model Complexity vs Error
Optimal Region
Model Complexity vs Error
Overfitting
Underfitting
Overfitting
How to fix/prevent overfitting:
● Add regularization
○ L1/L2 Reg
○ Dropout
● Reduce model complexity
Underfitting
How to fix/prevent underfitting:
● Lower regularization
coefficients
● Increase model complexity
● Feature Engineering
Data Catalog
Certification Study Group - Professional ML Engineer Session 3 (Machine Learning in the Enterprise)
Certification Study Group - Professional ML Engineer Session 3 (Machine Learning in the Enterprise)
Distributed Training Approaches
Async Parameter Server vs. Sync AllReduce
PS0 PS1
Worker 0 Worker 1 Worker 2 Worker 3
Async parameter server
PS0 PS1
Worker 0 Worker 1 Worker 2 Worker 3
x x x
Async parameter server
PS0 PS1
Worker 0 Worker 1 Worker 2 Worker 3
Async parameter server
Worker 0
Worker 3 Worker 2
Worker 1
p0, p1.. p0, p1..
p0, p1.. p0, p1..
Sync allreduce architecture
Consider async parameter server
if...
Consider sync allreduce if...
Many low-power or unreliable
workers.
Multiple devices on one host.
Fast devices with strong links (e.g.
TPUs).
Better for multiple GPUs.
Constrained by compute power.
More mature approach.
Constrained by I/O.
There isn’t one right answer, but here are some
considerations
Model Explainability
Gradient-based Attribution
attribution for
feature
Create attribution using gradient of the output wrt each base input
feature
● same as feature weights for linear models
● 1st order approximation for non-linear models
● use (normalized) attribution as mask/window over image
score
intensity
Interesting
gradients
uninterestin
g
gradients
1.0
0.0
Scaled
images
Scaled
gradients
Image Explanation
Sample Questions Review
Model complexity often refers to the number of features or terms included in a given predictive
model. What happens when the complexity of the model increases?
A. Model performance on a test set is going to be poor.
B. All of the options are correct.
C. Model is more likely to overfit.
D. Model will not figure out general relationships in the data.
Model complexity often refers to the number of features or terms included in a given predictive
model. What happens when the complexity of the model increases?
A. Model performance on a test set is going to be poor.
B. All of the options are correct.
C. Model is more likely to overfit.
D. Model will not figure out general relationships in the data.
You need to write a generic test to verify whether Dense Neural Network (DNN)
models automatically released by your team have a sufficient number of
parameters to learn the task for which they were built. What should you do?
A. Train the model for a few iterations, and check for NaN values.
B. Train the model for a few iterations, and verify that the loss is constant.
C. Train a simple linear model, and determine if the DNN model outperforms it.
D. Train the model with no regularization, and verify that the loss function is
close to zero.
You need to write a generic test to verify whether Dense Neural Network (DNN)
models automatically released by your team have a sufficient number of
parameters to learn the task for which they were built. What should you do?
A. Train the model for a few iterations, and check for NaN values.
B. Train the model for a few iterations, and verify that the loss is constant.
C. Train a simple linear model, and determine if the DNN model outperforms it.
D. Train the model with no regularization, and verify that the loss function is
close to zero.
You work for a textile manufacturer and have been asked to build a model to detect and classify
fabric defects. You trained a machine learning model with high recall based on high resolution
images taken at the end of the production line. You want quality control inspectors to gain trust in
your model. Which technique should you use to understand the rationale of your classifier?
A. Use K-fold cross validation to understand how the model performs on different test
datasets.
B. Use the Integrated Gradients method to efficiently compute feature attributions for each
predicted image.
C. Use PCA (Principal Component Analysis) to reduce the original feature set to a smaller set of
easily understood features.
D. Use k-means clustering to group similar images together, and calculate the Davies-Bouldin
index to evaluate the separation between clusters.
You work for a textile manufacturer and have been asked to build a model to detect and classify
fabric defects. You trained a machine learning model with high recall based on high resolution
images taken at the end of the production line. You want quality control inspectors to gain trust in
your model. Which technique should you use to understand the rationale of your classifier?
A. Use K-fold cross validation to understand how the model performs on different test
datasets.
B. Use the Integrated Gradients method to efficiently compute feature attributions for each
predicted image.
C. Use PCA (Principal Component Analysis) to reduce the original feature set to a smaller set of
easily understood features.
D. Use k-means clustering to group similar images together, and calculate the Davies-Bouldin
index to evaluate the separation between clusters.
Q&A
Preview actions for next
week
By our next meeting
1. Complete
a. Production Machine Learning Systems
b. Computer Vision Fundamentals with Google Cloud
Link to badge
Redeem your participation badge
Thank you for joining the event
Thank you for
tuning in!
For any operational questions about access to
Cloud Skills Boost or the Road to Google
Developers Certification program contact: gdg-
support@google.com

More Related Content

PPTX
Machine Learning with ML.NET and Azure - Andy Cross
PPTX
Integrating Machine Learning Capabilities into your team
PPTX
2024-02-24_Session 1 - PMLE_UPDATED.pptx
PDF
Machine Learning for Capacity Management
 
PDF
لموعد الإثنين 03 يناير 2022 143 مبادرة #تواصل_تطوير المحاضرة ال 143 من المباد...
PPTX
AI-900 - Fundamental Principles of ML.pptx
PDF
Machine learning for IoT - unpacking the blackbox
PDF
Choosing a Machine Learning technique to solve your need
Machine Learning with ML.NET and Azure - Andy Cross
Integrating Machine Learning Capabilities into your team
2024-02-24_Session 1 - PMLE_UPDATED.pptx
Machine Learning for Capacity Management
 
لموعد الإثنين 03 يناير 2022 143 مبادرة #تواصل_تطوير المحاضرة ال 143 من المباد...
AI-900 - Fundamental Principles of ML.pptx
Machine learning for IoT - unpacking the blackbox
Choosing a Machine Learning technique to solve your need

Similar to Certification Study Group - Professional ML Engineer Session 3 (Machine Learning in the Enterprise) (20)

PDF
Learning Ray, 5th Early Release Max Pumperla
PDF
The Machine Learning Workflow with Azure
PDF
Towards a Unified Data Analytics Optimizer with Yanlei Diao
PPTX
Building High Available and Scalable Machine Learning Applications
PDF
10 more lessons learned from building Machine Learning systems - MLConf
PDF
Xavier Amatriain, VP of Engineering, Quora at MLconf SF - 11/13/15
PDF
10 more lessons learned from building Machine Learning systems
PPTX
A TALE of DATA PATTERN DISCOVERY IN PARALLEL
PPTX
IMAGE CLASSIFICATION USING CONVOLUTIONAL NEURAL NETWORK.P.pptx
PDF
Enterprise deep learning lessons bodkin o reilly ai sf 2017
PPTX
Borys Rybak “Azure Machine Learning Studio & Azure Workbench & R + Python”
PDF
IRJET-Scaling Distributed Associative Classifier using Big Data
PDF
Test-Driven Machine Learning
PDF
Automatic image moderation in classifieds
PDF
Automatic image moderation in classifieds, Jarosław Szymczak
PDF
An introduction to Machine Learning
PDF
Azure Machine Learning and ML on Premises
PPTX
Automate ml workflow_transmogrif_ai-_chetan_khatri_berlin-scala
PDF
DutchMLSchool. ML Automation
PDF
Artificial Intelligence (ML - DL)
Learning Ray, 5th Early Release Max Pumperla
The Machine Learning Workflow with Azure
Towards a Unified Data Analytics Optimizer with Yanlei Diao
Building High Available and Scalable Machine Learning Applications
10 more lessons learned from building Machine Learning systems - MLConf
Xavier Amatriain, VP of Engineering, Quora at MLconf SF - 11/13/15
10 more lessons learned from building Machine Learning systems
A TALE of DATA PATTERN DISCOVERY IN PARALLEL
IMAGE CLASSIFICATION USING CONVOLUTIONAL NEURAL NETWORK.P.pptx
Enterprise deep learning lessons bodkin o reilly ai sf 2017
Borys Rybak “Azure Machine Learning Studio & Azure Workbench & R + Python”
IRJET-Scaling Distributed Associative Classifier using Big Data
Test-Driven Machine Learning
Automatic image moderation in classifieds
Automatic image moderation in classifieds, Jarosław Szymczak
An introduction to Machine Learning
Azure Machine Learning and ML on Premises
Automate ml workflow_transmogrif_ai-_chetan_khatri_berlin-scala
DutchMLSchool. ML Automation
Artificial Intelligence (ML - DL)
Ad

More from gdgsurrey (10)

PDF
ML Paper Writing Club Surrey (Data/AI/ML) Session#2
PDF
Unlock-Your-Potential-The-Power-of-Research-Papers .pdf
PDF
Understanding MLOps in the Era of Gen AI
PDF
Beyond Chatbots_ Unlocking Gemini's Potential through Flutter.pdf
PDF
Enhancing Angular Apps with Signals: A Gemini-Powered Showcase in Project IDX
PPTX
MOPs & ML Pipelines on GCP - Session 6, RGDC
PPTX
Certification Study Group - NLP & Recommendation Systems on GCP Session 5
PPTX
Production ML Systems and Computer Vision with Google Cloud
PPTX
Certification Study Group -Professional ML Engineer Session 2 (GCP-TensorFlow...
PDF
Road to Google Developer Certification: Panel Discussion & Networking
ML Paper Writing Club Surrey (Data/AI/ML) Session#2
Unlock-Your-Potential-The-Power-of-Research-Papers .pdf
Understanding MLOps in the Era of Gen AI
Beyond Chatbots_ Unlocking Gemini's Potential through Flutter.pdf
Enhancing Angular Apps with Signals: A Gemini-Powered Showcase in Project IDX
MOPs & ML Pipelines on GCP - Session 6, RGDC
Certification Study Group - NLP & Recommendation Systems on GCP Session 5
Production ML Systems and Computer Vision with Google Cloud
Certification Study Group -Professional ML Engineer Session 2 (GCP-TensorFlow...
Road to Google Developer Certification: Panel Discussion & Networking
Ad

Recently uploaded (20)

PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Business Ethics Teaching Materials for college
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
Basic Mud Logging Guide for educational purpose
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Cell Structure & Organelles in detailed.
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Complications of Minimal Access Surgery at WLH
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Business Ethics Teaching Materials for college
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Pre independence Education in Inndia.pdf
Basic Mud Logging Guide for educational purpose
PPH.pptx obstetrics and gynecology in nursing
Cell Structure & Organelles in detailed.
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
RMMM.pdf make it easy to upload and study
Microbial disease of the cardiovascular and lymphatic systems
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Complications of Minimal Access Surgery at WLH

Certification Study Group - Professional ML Engineer Session 3 (Machine Learning in the Enterprise)

  • 1. Session 3 Dr. Ryan Rad Professional Machine Learning Engineer
  • 2. Where are we on our journey 1 Session 3 Content Review 2 Extra Information 4 Next Steps 5 Sample Question Review 3 6 Q&A
  • 3. Where are we on our journey
  • 4. Professional Machine Learning Certification Learning Journey Organized by Google Developer Groups Surrey co hosting with GDG Seattle Session 1 Feb 24, 2024 Virtual Session 2 Mar 2, 2024 Virtual Session 3 Mar 9, 2024 Virtual Session 4 Mar 16, 2024 Virtual Session 5 Mar 23, 2024 Virtual Session 6 Apr 6, 2024 Virtual Review the Professional ML Engineer Exam Guide Review the Professional ML Engineer Sample Questions Go through: Google Cloud Platform Big Data and Machine Learning Fundamentals Hands On Lab Practice: Perform Foundational Data, ML, and AI Tasks in Google Cloud (Skill Badge) - 7hrs Build and Deploy ML Solutions on Vertex AI (Skill Badge) - 8hrs Self study (and potential exam) Lightning talk + Kick-off & Machine Learning Basics + Q&A Lightning talk + GCP- Tensorflow & Feature Engineering + Q&A Lightning talk + Enterprise Machine Learning + Q&A Lightning talk + Production Machine Learning with Google Cloud + Q&A Lightning talk + NLP & Recommendation Systems on GCP + Q&A Lightning talk + MOPs & ML Pipelines on GCP + Q&A Complete course: Introduction to AI and Machine Learning on Google Cloud Launching into Machine Learning Complete course: TensorFlow on Google Cloud Feature Engineering Complete course: Machine Learning in the Enterprise Hands On Lab Practice: Production Machine Learning Systems Computer Vision Fundamentals with Google Cloud Complete course: Natural Language Processing on Google Cloud Recommendation Systems on GCP Complete course: ML Ops - Getting Started ML Pipelines on Google Cloud Check Readiness: Professional ML Engineer Sample Questions
  • 6. Session 3 Study Group Model Development - Build a model. - Train a model. - Test a model. - Scale model training and serving. - Model Explainability
  • 11. Model Complexity vs Error Optimal Region
  • 12. Model Complexity vs Error Overfitting Underfitting
  • 13. Overfitting How to fix/prevent overfitting: ● Add regularization ○ L1/L2 Reg ○ Dropout ● Reduce model complexity
  • 14. Underfitting How to fix/prevent underfitting: ● Lower regularization coefficients ● Increase model complexity ● Feature Engineering
  • 18. Distributed Training Approaches Async Parameter Server vs. Sync AllReduce
  • 19. PS0 PS1 Worker 0 Worker 1 Worker 2 Worker 3 Async parameter server
  • 20. PS0 PS1 Worker 0 Worker 1 Worker 2 Worker 3 x x x Async parameter server
  • 21. PS0 PS1 Worker 0 Worker 1 Worker 2 Worker 3 Async parameter server
  • 22. Worker 0 Worker 3 Worker 2 Worker 1 p0, p1.. p0, p1.. p0, p1.. p0, p1.. Sync allreduce architecture
  • 23. Consider async parameter server if... Consider sync allreduce if... Many low-power or unreliable workers. Multiple devices on one host. Fast devices with strong links (e.g. TPUs). Better for multiple GPUs. Constrained by compute power. More mature approach. Constrained by I/O. There isn’t one right answer, but here are some considerations
  • 25. Gradient-based Attribution attribution for feature Create attribution using gradient of the output wrt each base input feature ● same as feature weights for linear models ● 1st order approximation for non-linear models ● use (normalized) attribution as mask/window over image
  • 29. Model complexity often refers to the number of features or terms included in a given predictive model. What happens when the complexity of the model increases? A. Model performance on a test set is going to be poor. B. All of the options are correct. C. Model is more likely to overfit. D. Model will not figure out general relationships in the data.
  • 30. Model complexity often refers to the number of features or terms included in a given predictive model. What happens when the complexity of the model increases? A. Model performance on a test set is going to be poor. B. All of the options are correct. C. Model is more likely to overfit. D. Model will not figure out general relationships in the data.
  • 31. You need to write a generic test to verify whether Dense Neural Network (DNN) models automatically released by your team have a sufficient number of parameters to learn the task for which they were built. What should you do? A. Train the model for a few iterations, and check for NaN values. B. Train the model for a few iterations, and verify that the loss is constant. C. Train a simple linear model, and determine if the DNN model outperforms it. D. Train the model with no regularization, and verify that the loss function is close to zero.
  • 32. You need to write a generic test to verify whether Dense Neural Network (DNN) models automatically released by your team have a sufficient number of parameters to learn the task for which they were built. What should you do? A. Train the model for a few iterations, and check for NaN values. B. Train the model for a few iterations, and verify that the loss is constant. C. Train a simple linear model, and determine if the DNN model outperforms it. D. Train the model with no regularization, and verify that the loss function is close to zero.
  • 33. You work for a textile manufacturer and have been asked to build a model to detect and classify fabric defects. You trained a machine learning model with high recall based on high resolution images taken at the end of the production line. You want quality control inspectors to gain trust in your model. Which technique should you use to understand the rationale of your classifier? A. Use K-fold cross validation to understand how the model performs on different test datasets. B. Use the Integrated Gradients method to efficiently compute feature attributions for each predicted image. C. Use PCA (Principal Component Analysis) to reduce the original feature set to a smaller set of easily understood features. D. Use k-means clustering to group similar images together, and calculate the Davies-Bouldin index to evaluate the separation between clusters.
  • 34. You work for a textile manufacturer and have been asked to build a model to detect and classify fabric defects. You trained a machine learning model with high recall based on high resolution images taken at the end of the production line. You want quality control inspectors to gain trust in your model. Which technique should you use to understand the rationale of your classifier? A. Use K-fold cross validation to understand how the model performs on different test datasets. B. Use the Integrated Gradients method to efficiently compute feature attributions for each predicted image. C. Use PCA (Principal Component Analysis) to reduce the original feature set to a smaller set of easily understood features. D. Use k-means clustering to group similar images together, and calculate the Davies-Bouldin index to evaluate the separation between clusters.
  • 35. Q&A
  • 36. Preview actions for next week
  • 37. By our next meeting 1. Complete a. Production Machine Learning Systems b. Computer Vision Fundamentals with Google Cloud
  • 38. Link to badge Redeem your participation badge Thank you for joining the event
  • 39. Thank you for tuning in! For any operational questions about access to Cloud Skills Boost or the Road to Google Developers Certification program contact: gdg- support@google.com