SlideShare a Scribd company logo
20th May, 2023 Bengaluru
20th May, 2023 Bengaluru
Speaker
Saradindu Sengupta
Senior ML Engineer @Nunam
Where I work on building learning systems to
forecast health and failure of Li-ion batteries.
Interpretable ML in production
Table of Contents
1. Introduction
2. When and Why model understanding
3. What is model interpretability
a. Journey of a model
b. Interpretability framework
4. Achieving model understanding
a. Inherently interpretable models
b. Post-hoc explanations
5. What-if Toolkit
Introduction - Kick-off
Predict Wolf vs Husky [6]
Only 1 mistake!
Introduction - kick-off
Predict Wolf vs Husky - A great snow detector [6]
A great snow detector…
When and Why Model Understanding?
Not all applications require model understanding
1. E.g., ad/product/friend recommendations
2. No human intervention
Model understanding not needed because:
1. Little to no consequences for incorrect predictions
2. Problem is well studied and models are extensively validated in real-world applications
When and Why Model Understanding?
High-stakes decision-making settings
1. Impact on human lives/health/finances
2. Settings relatively less well studied, models not extensively validated
Accuracy alone is no longer enough
1. Train/test data may not be representative of data encountered in practice
Auxiliary criteria are also critical:
1. Nondiscrimination
2. Right to explanation
3. Safety
What is model interpretability
Journey of a model
X1
X2
X3
.
.
xn
y,,
y*
Evaluation
Metrics
Users
But can you trust your model?
Will it work in deployment?
What is model interpretability
Interpretability Framework
1. Trust
a. A prerequisite for humans to trust models
2. Causality
a. Learned associations between variables and outcomes
3. Transferability
a. How models might fare when the test environment shifts from the training environment.
4. Fair and Ethical Decision Making
a. Algorithmic decisions must be explainable, contestable, and modifiable
Geared towards supervised learning [4]. For understanding interpretability in reinforcement learning [5], which studies the
human interpretability of robot actions.
Achieving Model Understanding
1. Build inherently interpretable predictive models
Achieving Model Understanding
2. Explain pre-built models in a post-hoc manner
Explainer
Achieving Model Understanding
Inherently Interpretable Models vs. Post hoc Explanations [9]
Example
In certain scenarios, accuracy-interpretability trade will may exist
Achieving Model Understanding
Inherently Interpretable Models vs. Post hoc Explanations [9]
complex models might achieve higher accuracy
can build interpretable + accurate models
Achieving Model Understanding
Inherently Interpretable Models
1. Rule Based Models
a. Bayesian Rule List
b. Decision sets
2. Risk Scores
a. Widely used in medicine, criminal justice system,
regulated industry such as insurance and loan
3. Linear models
a. Linear regressions
4. Generalized Additive Models
5. Prototype Based Models
6. Tree based models
a. Decision Tree
b. Tree-based ensemble Model
Achieving Model Understanding
Post hoc Explanations
LIME (Local Interpretable Model-Agnostic Explanations) [6]
Given an example, x, LIME attempts to fit an interpretable model locally that is faithful to the output of the original model,
f(x), in a neighborhood around x
1. Sample points around xi
2. Use model to predict labels for each sample
3. Weigh samples according to distance to xi
4. Learn simple linear model on weighted samples
5. Use simple linear model to explain
Achieving Model Understanding
Post hoc Explanations
SHAP (SHapley Additive exPlanations) [10]
It tries to add 3 attributes that we want in an interpretable model
1. Local accuracy
2. Missingness
3. Consistency
xi
P(y) = 0.9
xi
P(y) = 0.8
M(xi
, O) = 0.1
O
O/xi
What-if Toolkit [11]
Google Colab || Data Set: UCI Census Income Dataset || GitHub Repository with Tutorials
Vertex AI integration
References
1. Zachary C. Lipton, “The Mythos of Model Interpretability”, 2016, [https://arxiv.org/abs/1606.03490]
2. Finale Doshi-Velez, Been Kim, “Towards A Rigorous Science of Interpretable Machine Learning”, 2017,
[https://arxiv.org/abs/1702.08608]
3. S. Ghanta et al., "Interpretability and Reproducability in Production Machine Learning Applications," 2018 17th IEEE
International Conference on Machine Learning and Applications (ICMLA), Orlando, FL, USA, 2018, pp. 658-664, doi:
10.1109/ICMLA.2018.00105.
4. Lou,Yin, Caruana, Rich, and Gehrke, Johannes. “Intelligible models for classification and regression”.In KDD, 2012.
5. Dragan, AncaD, Lee, Kenton CT, and Srinivasa, Siddhartha S., “Legibility and predictability of robot motion. In Human-Robot
Interaction(HRI), 2013 8th ACM/IEEE International Conference on. IEEE, 2013.
6. Ribeiro et. al. 2016[https://arxiv.org/abs/1602.04938]
7. Ribeiro et al. 2018[https://homes.cs.washington.edu/~marcotcr/aaai18.pdf]
8. Lakkaraju et. al. 2019 [https://dl.acm.org/doi/10.1145/3306618.3314229]
9. Machine Learning Explainability Workshop, Stanford University
[https://youtube.com/playlist?list=PLoROMvodv4rPh6wa6PGcHH6vMG9sEIPxL]
10. Lundberg, S., & Lee, S. (2017). A Unified Approach to Interpreting Model Predictions. ArXiv. /abs/1705.07874
[https://arxiv.org/abs/1705.07874]
11. J. Wexler, M. Pushkarna, T. Bolukbasi, M. Wattenberg, F. Viégas and J. Wilson, "The What-If Tool: Interactive Probing of
Machine Learning Models," in IEEE Transactions on Visualization and Computer Graphics, vol. 26, no. 1, pp. 56-65, Jan. 2020,
doi: 10.1109/TVCG.2019.2934619.[https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=8807255]
Thank You
linkedin/saradindusengupta
@iamsaradindu

More Related Content

Similar to GDG Community Day 2023 - Interpretable ML in production

Interview student-ci-mca
Interview student-ci-mcaInterview student-ci-mca
Interview student-ci-mca
Joseph Rodiz
 
Advantages and disadvantages of machine learning language
Advantages and disadvantages of machine learning languageAdvantages and disadvantages of machine learning language
Advantages and disadvantages of machine learning language
business Corporate
 
Interpretable Machine Learning_ Techniques for Model Explainability.
Interpretable Machine Learning_ Techniques for Model Explainability.Interpretable Machine Learning_ Techniques for Model Explainability.
Interpretable Machine Learning_ Techniques for Model Explainability.
Tyrion Lannister
 
Template abstrak & full paper seminar 50 thn
Template abstrak & full paper seminar 50 thnTemplate abstrak & full paper seminar 50 thn
Template abstrak & full paper seminar 50 thn
TeKno (Technology and Knowledge)
 
Use of Hough Transform and Homography for the Creation of Image Corpora for S...
Use of Hough Transform and Homography for the Creation of Image Corpora for S...Use of Hough Transform and Homography for the Creation of Image Corpora for S...
Use of Hough Transform and Homography for the Creation of Image Corpora for S...
IJCI JOURNAL
 
2_Basic computers and information Science.pdf
2_Basic computers and information Science.pdf2_Basic computers and information Science.pdf
2_Basic computers and information Science.pdf
Vamsi kumar
 
6p model of research
6p model of research6p model of research
6p model of research
bharati vidhyapeeth uni.-pune
 
Design_Thinking_CA1_N00147768
Design_Thinking_CA1_N00147768Design_Thinking_CA1_N00147768
Design_Thinking_CA1_N00147768
Stephen Norman
 
Machine Learning and Deep Learning from Foundations to Applications Excel, R,...
Machine Learning and Deep Learning from Foundations to Applications Excel, R,...Machine Learning and Deep Learning from Foundations to Applications Excel, R,...
Machine Learning and Deep Learning from Foundations to Applications Excel, R,...
Narendra Ashar
 
Machine learning based recommender system for e-commerce
Machine learning based recommender system for e-commerceMachine learning based recommender system for e-commerce
Machine learning based recommender system for e-commerce
IAESIJAI
 
On the benefit of logic-based machine learning to learn pairwise comparisons
On the benefit of logic-based machine learning to learn pairwise comparisonsOn the benefit of logic-based machine learning to learn pairwise comparisons
On the benefit of logic-based machine learning to learn pairwise comparisons
journalBEEI
 
Goal Dynamics_From System Dynamics to Implementation
Goal Dynamics_From System Dynamics to ImplementationGoal Dynamics_From System Dynamics to Implementation
Goal Dynamics_From System Dynamics to Implementation
Amjad Adib
 
A Survey of Building Robust Business Models in Pervasive Computing
A Survey of Building Robust Business Models in Pervasive ComputingA Survey of Building Robust Business Models in Pervasive Computing
A Survey of Building Robust Business Models in Pervasive Computing
Osama M. Khaled
 

Similar to GDG Community Day 2023 - Interpretable ML in production (13)

Interview student-ci-mca
Interview student-ci-mcaInterview student-ci-mca
Interview student-ci-mca
 
Advantages and disadvantages of machine learning language
Advantages and disadvantages of machine learning languageAdvantages and disadvantages of machine learning language
Advantages and disadvantages of machine learning language
 
Interpretable Machine Learning_ Techniques for Model Explainability.
Interpretable Machine Learning_ Techniques for Model Explainability.Interpretable Machine Learning_ Techniques for Model Explainability.
Interpretable Machine Learning_ Techniques for Model Explainability.
 
Template abstrak & full paper seminar 50 thn
Template abstrak & full paper seminar 50 thnTemplate abstrak & full paper seminar 50 thn
Template abstrak & full paper seminar 50 thn
 
Use of Hough Transform and Homography for the Creation of Image Corpora for S...
Use of Hough Transform and Homography for the Creation of Image Corpora for S...Use of Hough Transform and Homography for the Creation of Image Corpora for S...
Use of Hough Transform and Homography for the Creation of Image Corpora for S...
 
2_Basic computers and information Science.pdf
2_Basic computers and information Science.pdf2_Basic computers and information Science.pdf
2_Basic computers and information Science.pdf
 
6p model of research
6p model of research6p model of research
6p model of research
 
Design_Thinking_CA1_N00147768
Design_Thinking_CA1_N00147768Design_Thinking_CA1_N00147768
Design_Thinking_CA1_N00147768
 
Machine Learning and Deep Learning from Foundations to Applications Excel, R,...
Machine Learning and Deep Learning from Foundations to Applications Excel, R,...Machine Learning and Deep Learning from Foundations to Applications Excel, R,...
Machine Learning and Deep Learning from Foundations to Applications Excel, R,...
 
Machine learning based recommender system for e-commerce
Machine learning based recommender system for e-commerceMachine learning based recommender system for e-commerce
Machine learning based recommender system for e-commerce
 
On the benefit of logic-based machine learning to learn pairwise comparisons
On the benefit of logic-based machine learning to learn pairwise comparisonsOn the benefit of logic-based machine learning to learn pairwise comparisons
On the benefit of logic-based machine learning to learn pairwise comparisons
 
Goal Dynamics_From System Dynamics to Implementation
Goal Dynamics_From System Dynamics to ImplementationGoal Dynamics_From System Dynamics to Implementation
Goal Dynamics_From System Dynamics to Implementation
 
A Survey of Building Robust Business Models in Pervasive Computing
A Survey of Building Robust Business Models in Pervasive ComputingA Survey of Building Robust Business Models in Pervasive Computing
A Survey of Building Robust Business Models in Pervasive Computing
 

More from SARADINDU SENGUPTA

Solar Energy Output Forecasting from SolarGIS Data for Connected Grid Station
Solar Energy Output Forecasting from SolarGIS Data for Connected Grid StationSolar Energy Output Forecasting from SolarGIS Data for Connected Grid Station
Solar Energy Output Forecasting from SolarGIS Data for Connected Grid Station
SARADINDU SENGUPTA
 
An Analytical Comparison of Different Regularization Parameter Selection Meth...
An Analytical Comparison of Different Regularization Parameter Selection Meth...An Analytical Comparison of Different Regularization Parameter Selection Meth...
An Analytical Comparison of Different Regularization Parameter Selection Meth...
SARADINDU SENGUPTA
 
Pydata Global 2023 - How can a learnt model unlearn something
Pydata Global 2023 - How can a learnt model unlearn somethingPydata Global 2023 - How can a learnt model unlearn something
Pydata Global 2023 - How can a learnt model unlearn something
SARADINDU SENGUPTA
 
AZConf 2023 - Considerations for LLMOps: Running LLMs in production
AZConf 2023 - Considerations for LLMOps: Running LLMs in productionAZConf 2023 - Considerations for LLMOps: Running LLMs in production
AZConf 2023 - Considerations for LLMOps: Running LLMs in production
SARADINDU SENGUPTA
 
PyData Global 2022 - Lightning Talk - Bessel's Correction
PyData Global 2022 - Lightning Talk - Bessel's CorrectionPyData Global 2022 - Lightning Talk - Bessel's Correction
PyData Global 2022 - Lightning Talk - Bessel's Correction
SARADINDU SENGUPTA
 
PyData Global 2022 - Things I learned while running neural networks on microc...
PyData Global 2022 - Things I learned while running neural networks on microc...PyData Global 2022 - Things I learned while running neural networks on microc...
PyData Global 2022 - Things I learned while running neural networks on microc...
SARADINDU SENGUPTA
 
GDG Cloud Community Day 2022 - Managing data quality in Machine Learning
GDG Cloud Community Day 2022 -  Managing data quality in Machine LearningGDG Cloud Community Day 2022 -  Managing data quality in Machine Learning
GDG Cloud Community Day 2022 - Managing data quality in Machine Learning
SARADINDU SENGUPTA
 

More from SARADINDU SENGUPTA (7)

Solar Energy Output Forecasting from SolarGIS Data for Connected Grid Station
Solar Energy Output Forecasting from SolarGIS Data for Connected Grid StationSolar Energy Output Forecasting from SolarGIS Data for Connected Grid Station
Solar Energy Output Forecasting from SolarGIS Data for Connected Grid Station
 
An Analytical Comparison of Different Regularization Parameter Selection Meth...
An Analytical Comparison of Different Regularization Parameter Selection Meth...An Analytical Comparison of Different Regularization Parameter Selection Meth...
An Analytical Comparison of Different Regularization Parameter Selection Meth...
 
Pydata Global 2023 - How can a learnt model unlearn something
Pydata Global 2023 - How can a learnt model unlearn somethingPydata Global 2023 - How can a learnt model unlearn something
Pydata Global 2023 - How can a learnt model unlearn something
 
AZConf 2023 - Considerations for LLMOps: Running LLMs in production
AZConf 2023 - Considerations for LLMOps: Running LLMs in productionAZConf 2023 - Considerations for LLMOps: Running LLMs in production
AZConf 2023 - Considerations for LLMOps: Running LLMs in production
 
PyData Global 2022 - Lightning Talk - Bessel's Correction
PyData Global 2022 - Lightning Talk - Bessel's CorrectionPyData Global 2022 - Lightning Talk - Bessel's Correction
PyData Global 2022 - Lightning Talk - Bessel's Correction
 
PyData Global 2022 - Things I learned while running neural networks on microc...
PyData Global 2022 - Things I learned while running neural networks on microc...PyData Global 2022 - Things I learned while running neural networks on microc...
PyData Global 2022 - Things I learned while running neural networks on microc...
 
GDG Cloud Community Day 2022 - Managing data quality in Machine Learning
GDG Cloud Community Day 2022 -  Managing data quality in Machine LearningGDG Cloud Community Day 2022 -  Managing data quality in Machine Learning
GDG Cloud Community Day 2022 - Managing data quality in Machine Learning
 

Recently uploaded

University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
soxrziqu
 
DSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelinesDSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelines
Timothy Spann
 
一比一原版(Sheffield毕业证书)谢菲尔德大学毕业证如何办理
一比一原版(Sheffield毕业证书)谢菲尔德大学毕业证如何办理一比一原版(Sheffield毕业证书)谢菲尔德大学毕业证如何办理
一比一原版(Sheffield毕业证书)谢菲尔德大学毕业证如何办理
1tyxnjpia
 
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docxDATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
SaffaIbrahim1
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
ihavuls
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
nuttdpt
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
Timothy Spann
 
writing report business partner b1+ .pdf
writing report business partner b1+ .pdfwriting report business partner b1+ .pdf
writing report business partner b1+ .pdf
VyNguyen709676
 
How To Control IO Usage using Resource Manager
How To Control IO Usage using Resource ManagerHow To Control IO Usage using Resource Manager
How To Control IO Usage using Resource Manager
Alireza Kamrani
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
nyfuhyz
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
aqzctr7x
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
Social Samosa
 
社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .
NABLAS株式会社
 
Orchestrating the Future: Navigating Today's Data Workflow Challenges with Ai...
Orchestrating the Future: Navigating Today's Data Workflow Challenges with Ai...Orchestrating the Future: Navigating Today's Data Workflow Challenges with Ai...
Orchestrating the Future: Navigating Today's Data Workflow Challenges with Ai...
Kaxil Naik
 
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
xclpvhuk
 
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
eoxhsaa
 
Jio cinema Retention & Engagement Strategy.pdf
Jio cinema Retention & Engagement Strategy.pdfJio cinema Retention & Engagement Strategy.pdf
Jio cinema Retention & Engagement Strategy.pdf
inaya7568
 
[VCOSA] Monthly Report - Cotton & Yarn Statistics March 2024
[VCOSA] Monthly Report - Cotton & Yarn Statistics March 2024[VCOSA] Monthly Report - Cotton & Yarn Statistics March 2024
[VCOSA] Monthly Report - Cotton & Yarn Statistics March 2024
Vietnam Cotton & Spinning Association
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
Social Samosa
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
nuttdpt
 

Recently uploaded (20)

University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
 
DSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelinesDSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelines
 
一比一原版(Sheffield毕业证书)谢菲尔德大学毕业证如何办理
一比一原版(Sheffield毕业证书)谢菲尔德大学毕业证如何办理一比一原版(Sheffield毕业证书)谢菲尔德大学毕业证如何办理
一比一原版(Sheffield毕业证书)谢菲尔德大学毕业证如何办理
 
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docxDATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
 
writing report business partner b1+ .pdf
writing report business partner b1+ .pdfwriting report business partner b1+ .pdf
writing report business partner b1+ .pdf
 
How To Control IO Usage using Resource Manager
How To Control IO Usage using Resource ManagerHow To Control IO Usage using Resource Manager
How To Control IO Usage using Resource Manager
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
 
社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .
 
Orchestrating the Future: Navigating Today's Data Workflow Challenges with Ai...
Orchestrating the Future: Navigating Today's Data Workflow Challenges with Ai...Orchestrating the Future: Navigating Today's Data Workflow Challenges with Ai...
Orchestrating the Future: Navigating Today's Data Workflow Challenges with Ai...
 
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
 
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
 
Jio cinema Retention & Engagement Strategy.pdf
Jio cinema Retention & Engagement Strategy.pdfJio cinema Retention & Engagement Strategy.pdf
Jio cinema Retention & Engagement Strategy.pdf
 
[VCOSA] Monthly Report - Cotton & Yarn Statistics March 2024
[VCOSA] Monthly Report - Cotton & Yarn Statistics March 2024[VCOSA] Monthly Report - Cotton & Yarn Statistics March 2024
[VCOSA] Monthly Report - Cotton & Yarn Statistics March 2024
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
 

GDG Community Day 2023 - Interpretable ML in production

  • 1. 20th May, 2023 Bengaluru
  • 2. 20th May, 2023 Bengaluru Speaker Saradindu Sengupta Senior ML Engineer @Nunam Where I work on building learning systems to forecast health and failure of Li-ion batteries. Interpretable ML in production
  • 3. Table of Contents 1. Introduction 2. When and Why model understanding 3. What is model interpretability a. Journey of a model b. Interpretability framework 4. Achieving model understanding a. Inherently interpretable models b. Post-hoc explanations 5. What-if Toolkit
  • 4. Introduction - Kick-off Predict Wolf vs Husky [6] Only 1 mistake!
  • 5. Introduction - kick-off Predict Wolf vs Husky - A great snow detector [6] A great snow detector…
  • 6. When and Why Model Understanding? Not all applications require model understanding 1. E.g., ad/product/friend recommendations 2. No human intervention Model understanding not needed because: 1. Little to no consequences for incorrect predictions 2. Problem is well studied and models are extensively validated in real-world applications
  • 7. When and Why Model Understanding? High-stakes decision-making settings 1. Impact on human lives/health/finances 2. Settings relatively less well studied, models not extensively validated Accuracy alone is no longer enough 1. Train/test data may not be representative of data encountered in practice Auxiliary criteria are also critical: 1. Nondiscrimination 2. Right to explanation 3. Safety
  • 8. What is model interpretability Journey of a model X1 X2 X3 . . xn y,, y* Evaluation Metrics Users But can you trust your model? Will it work in deployment?
  • 9. What is model interpretability Interpretability Framework 1. Trust a. A prerequisite for humans to trust models 2. Causality a. Learned associations between variables and outcomes 3. Transferability a. How models might fare when the test environment shifts from the training environment. 4. Fair and Ethical Decision Making a. Algorithmic decisions must be explainable, contestable, and modifiable Geared towards supervised learning [4]. For understanding interpretability in reinforcement learning [5], which studies the human interpretability of robot actions.
  • 10. Achieving Model Understanding 1. Build inherently interpretable predictive models
  • 11. Achieving Model Understanding 2. Explain pre-built models in a post-hoc manner Explainer
  • 12. Achieving Model Understanding Inherently Interpretable Models vs. Post hoc Explanations [9] Example In certain scenarios, accuracy-interpretability trade will may exist
  • 13. Achieving Model Understanding Inherently Interpretable Models vs. Post hoc Explanations [9] complex models might achieve higher accuracy can build interpretable + accurate models
  • 14. Achieving Model Understanding Inherently Interpretable Models 1. Rule Based Models a. Bayesian Rule List b. Decision sets 2. Risk Scores a. Widely used in medicine, criminal justice system, regulated industry such as insurance and loan 3. Linear models a. Linear regressions 4. Generalized Additive Models 5. Prototype Based Models 6. Tree based models a. Decision Tree b. Tree-based ensemble Model
  • 15. Achieving Model Understanding Post hoc Explanations LIME (Local Interpretable Model-Agnostic Explanations) [6] Given an example, x, LIME attempts to fit an interpretable model locally that is faithful to the output of the original model, f(x), in a neighborhood around x 1. Sample points around xi 2. Use model to predict labels for each sample 3. Weigh samples according to distance to xi 4. Learn simple linear model on weighted samples 5. Use simple linear model to explain
  • 16. Achieving Model Understanding Post hoc Explanations SHAP (SHapley Additive exPlanations) [10] It tries to add 3 attributes that we want in an interpretable model 1. Local accuracy 2. Missingness 3. Consistency xi P(y) = 0.9 xi P(y) = 0.8 M(xi , O) = 0.1 O O/xi
  • 17. What-if Toolkit [11] Google Colab || Data Set: UCI Census Income Dataset || GitHub Repository with Tutorials Vertex AI integration
  • 18. References 1. Zachary C. Lipton, “The Mythos of Model Interpretability”, 2016, [https://arxiv.org/abs/1606.03490] 2. Finale Doshi-Velez, Been Kim, “Towards A Rigorous Science of Interpretable Machine Learning”, 2017, [https://arxiv.org/abs/1702.08608] 3. S. Ghanta et al., "Interpretability and Reproducability in Production Machine Learning Applications," 2018 17th IEEE International Conference on Machine Learning and Applications (ICMLA), Orlando, FL, USA, 2018, pp. 658-664, doi: 10.1109/ICMLA.2018.00105. 4. Lou,Yin, Caruana, Rich, and Gehrke, Johannes. “Intelligible models for classification and regression”.In KDD, 2012. 5. Dragan, AncaD, Lee, Kenton CT, and Srinivasa, Siddhartha S., “Legibility and predictability of robot motion. In Human-Robot Interaction(HRI), 2013 8th ACM/IEEE International Conference on. IEEE, 2013. 6. Ribeiro et. al. 2016[https://arxiv.org/abs/1602.04938] 7. Ribeiro et al. 2018[https://homes.cs.washington.edu/~marcotcr/aaai18.pdf] 8. Lakkaraju et. al. 2019 [https://dl.acm.org/doi/10.1145/3306618.3314229] 9. Machine Learning Explainability Workshop, Stanford University [https://youtube.com/playlist?list=PLoROMvodv4rPh6wa6PGcHH6vMG9sEIPxL] 10. Lundberg, S., & Lee, S. (2017). A Unified Approach to Interpreting Model Predictions. ArXiv. /abs/1705.07874 [https://arxiv.org/abs/1705.07874] 11. J. Wexler, M. Pushkarna, T. Bolukbasi, M. Wattenberg, F. Viégas and J. Wilson, "The What-If Tool: Interactive Probing of Machine Learning Models," in IEEE Transactions on Visualization and Computer Graphics, vol. 26, no. 1, pp. 56-65, Jan. 2020, doi: 10.1109/TVCG.2019.2934619.[https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=8807255]