SlideShare a Scribd company logo
DEMYSTIFYING
MACHINE LEARNING
Alejandro Correa Bahnsen
1
BLACK BOX
MODELS
Machine learning models
are often dismissed on the
grounds of lack of
interpretability.
When using advanced
models it is nearly
impossible to understand
how a model is making a
prediction.
2
MNIST - ACCU VS # PARAMS
Notebook to create the plot
3
LIME
stands for Local
Interpretable Model-
agnostic Explanations, and
its objective is to explain
the result from any
classifier so that a human
can understand individual
predictions
LIME
4
LIME
An interpretable representation is a point in a space
whose dimensions can be interpreted by a human.
LIME frames the search for an interpretable
explanation as an optimization problem. Given a set
G of potentially interpretable models, we need a
measure L(f,g,x) of how poorly the interpretable
model g∈∈G approximates the original model f for
point x this is the loss function. We also need some
measure Ω(g) of the complexity of the model (e.g. the
depth of a decision tree). We then pick a model which
minimizes both of these
ξ(x) = argmin g∈∈G L(f,g,x)+Ω(g)
5
LIME
6
LIME EXAMPLE
URL PHISHING DETECTION
7
URL PHISHING CLASSIFIER
Objective: Evaluate phishing
probability using only the
web site URL
8
URL PHISHING CLASSIFIER
Train a random forest
9
LIME EXAMPLE
Fit lime explainer
Explain an instance
10
LIME EXAMPLE
Example Phishing URL
Phishing probability
1.0
Url = http://login.paypal.com.convexcentral.com/Update/ab770f624342b07b71e56c1bae5d9bcb/
11
LIME EXAMPLE
Example Phishing URL
Phishing probability
0.0283
Url = ...http://www.redeyechicago.com/entertainment/tv/redeye-banshee-ivana-mili
12
THANK YOU
FULL NOTEBOOK IN
HTTPS://GITHUB.COM/ALBAHNSEN/TALK
_DEMYSTIFYING_MACHINE_LEARNING
13

More Related Content

PPTX
PDF
Interpretable Machine Learning Using LIME Framework - Kasia Kulma (PhD), Data...
PDF
Unified Approach to Interpret Machine Learning Model: SHAP + LIME
PDF
Machine Learning Explanations: LIME framework
PDF
Machine Learning Interpretability
PPTX
Random forest algorithm
PPTX
Explainable AI
PDF
Explainable AI (XAI)
Interpretable Machine Learning Using LIME Framework - Kasia Kulma (PhD), Data...
Unified Approach to Interpret Machine Learning Model: SHAP + LIME
Machine Learning Explanations: LIME framework
Machine Learning Interpretability
Random forest algorithm
Explainable AI
Explainable AI (XAI)

What's hot (20)

PDF
Lecture 1: What is Machine Learning?
PPTX
K-Nearest Neighbor Classifier
PDF
DC02. Interpretation of predictions
PPTX
Explainable AI
PDF
Towards Human-Centered Machine Learning
PPTX
Explaining Black-Box Machine Learning Predictions - Sameer Singh, Assistant P...
PPTX
eScience SHAP talk
PDF
Explainability and bias in AI
PDF
AI PPT-ALR_Unit-3-1.pdf
PPTX
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
PDF
Gradient descent method
PPTX
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
PPTX
Deep neural networks
PPTX
Explainability for Natural Language Processing
PDF
Feature Engineering
PPTX
Ensemble methods
PPTX
Introduction to Grad-CAM (complete version)
PPTX
Using SHAP to Understand Black Box Models
PPTX
XgBoost.pptx
PPTX
Deep Reinforcement Learning
Lecture 1: What is Machine Learning?
K-Nearest Neighbor Classifier
DC02. Interpretation of predictions
Explainable AI
Towards Human-Centered Machine Learning
Explaining Black-Box Machine Learning Predictions - Sameer Singh, Assistant P...
eScience SHAP talk
Explainability and bias in AI
AI PPT-ALR_Unit-3-1.pdf
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Gradient descent method
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
Deep neural networks
Explainability for Natural Language Processing
Feature Engineering
Ensemble methods
Introduction to Grad-CAM (complete version)
Using SHAP to Understand Black Box Models
XgBoost.pptx
Deep Reinforcement Learning
Ad

Viewers also liked (14)

PPTX
How I Learned to Stop Worrying and Love Building Data Products
PPTX
Maximizing a churn campaigns profitability with cost sensitive machine learning
PDF
2011 advanced analytics through the credit cycle
PDF
Modern Data Science
PPTX
Fraud Detection with Cost-Sensitive Predictive Analytics
PDF
Analytics - compitiendo en la era de la informacion
PDF
PhD Defense - Example-Dependent Cost-Sensitive Classification
PDF
Example-Dependent Cost-Sensitive Credit Card Fraud Detection
PPTX
Classifying Phishing URLs Using Recurrent Neural Networks
PPTX
1609 Fraud Data Science
PDF
2013 credit card fraud detection why theory dosent adjust to practice
PDF
Fraud analytics detección y prevención de fraudes en la era del big data sl...
PDF
Maximizing a churn campaign’s profitability with cost sensitive predictive an...
PDF
Ensembles of example dependent cost-sensitive decision trees slides
How I Learned to Stop Worrying and Love Building Data Products
Maximizing a churn campaigns profitability with cost sensitive machine learning
2011 advanced analytics through the credit cycle
Modern Data Science
Fraud Detection with Cost-Sensitive Predictive Analytics
Analytics - compitiendo en la era de la informacion
PhD Defense - Example-Dependent Cost-Sensitive Classification
Example-Dependent Cost-Sensitive Credit Card Fraud Detection
Classifying Phishing URLs Using Recurrent Neural Networks
1609 Fraud Data Science
2013 credit card fraud detection why theory dosent adjust to practice
Fraud analytics detección y prevención de fraudes en la era del big data sl...
Maximizing a churn campaign’s profitability with cost sensitive predictive an...
Ensembles of example dependent cost-sensitive decision trees slides
Ad

Similar to Demystifying machine learning using lime (20)

PPTX
Explainable Machine Learning (Explainable ML)
PDF
Evaluating text classification with explainable artificial intelligence
PPTX
Enhancing Machine Learning Interpretability with LIME.pptx
PDF
Can Machine Learning Models be Trusted? Explaining Decisions of ML Models
PPTX
Deciphering AI - Unlocking the Black Box of AIML with State-of-the-Art Techno...
PPTX
Why should i trust you summary paper
PPTX
Explaining machine learning models with python
PDF
Building trust through Explainable AI
PPTX
Interpretable ML
PPTX
Oleksander Krakovetskyi "Explaining a Machine Learning blackbox"
PDF
Driverless AI Hands-on Focused on Machine Learning Interpretability - H2O.ai
PDF
​​Explainability in AI and Recommender systems: let’s make it interactive!
PPTX
xai basic solutions , with some examples and formulas
PDF
Explainable Artificial Intelligence (XAI): Precepts, Methods, and Opportuniti...
PDF
Reds interpretability report
PDF
Why your relationship is likely to last, or not: Local Interpretable Model-Ag...
PPTX
Hima_CHIL.pptx machine learning motivation
PDF
PDF
Ethical Algorithms: Bias in Machine Learning for NextAI
PPTX
Distilling dark knowledge from neural networks
Explainable Machine Learning (Explainable ML)
Evaluating text classification with explainable artificial intelligence
Enhancing Machine Learning Interpretability with LIME.pptx
Can Machine Learning Models be Trusted? Explaining Decisions of ML Models
Deciphering AI - Unlocking the Black Box of AIML with State-of-the-Art Techno...
Why should i trust you summary paper
Explaining machine learning models with python
Building trust through Explainable AI
Interpretable ML
Oleksander Krakovetskyi "Explaining a Machine Learning blackbox"
Driverless AI Hands-on Focused on Machine Learning Interpretability - H2O.ai
​​Explainability in AI and Recommender systems: let’s make it interactive!
xai basic solutions , with some examples and formulas
Explainable Artificial Intelligence (XAI): Precepts, Methods, and Opportuniti...
Reds interpretability report
Why your relationship is likely to last, or not: Local Interpretable Model-Ag...
Hima_CHIL.pptx machine learning motivation
Ethical Algorithms: Bias in Machine Learning for NextAI
Distilling dark knowledge from neural networks

Recently uploaded (20)

PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PPTX
Computer network topology notes for revision
PPTX
Supervised vs unsupervised machine learning algorithms
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PDF
Foundation of Data Science unit number two notes
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PPTX
Database Infoormation System (DBIS).pptx
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PDF
Fluorescence-microscope_Botany_detailed content
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
Computer network topology notes for revision
Supervised vs unsupervised machine learning algorithms
Clinical guidelines as a resource for EBP(1).pdf
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
Acceptance and paychological effects of mandatory extra coach I classes.pptx
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
oil_refinery_comprehensive_20250804084928 (1).pptx
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
Foundation of Data Science unit number two notes
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
Database Infoormation System (DBIS).pptx
IBA_Chapter_11_Slides_Final_Accessible.pptx
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
STUDY DESIGN details- Lt Col Maksud (21).pptx
Fluorescence-microscope_Botany_detailed content
Galatica Smart Energy Infrastructure Startup Pitch Deck

Demystifying machine learning using lime