SlideShare a Scribd company logo
Machine Learning
for dummies
with Python
EUROPYTHON
Javier Arias
@javier_arilos
One day in your life
July 2016
One day in your life
Time to leave the office
One day in your life
Tesla autopilot
One day in your life
Playing music
One day in your life
Your photos organized
One day in your life
Machine Learning is here,
it is everywhere and
it is going to stay
About this presentation
Why Machine Learning (ML) matters
A journey on Machine Learning
Some ML technologies and resources
Some basic ML concepts, with code samples
Machine Learning is the next big thing
Are machines already intelligent?
Image-net challenge
2015: machines outperform people
Chess
1997: Deepblue defeats Kasparov
Game of Go
2016: AlphaGo wins world champion Lee Sedol
Europython - Machine Learning for dummies with Python
The journey
Learning about ML
MOOC - Massive Open Online Courses
Contents by the best universities and companies
Udacity, Coursera, EdX
Udacity - Intro to Machine Learning
Pattern Recognition for Fun and Profit
- Very well organized contents
- Python + sklearn
- Free
- At your own pace
Udacity - Intro to Machine Learning
Pattern Recognition for Fun and Profit
Udacity - Intro to Machine Learning
Pattern Recognition for Fun and Profit
What is Machine Learning?
Solving a complex problem
somethingfeatures
(data)
prediction
First approach, programming
tell the computer what to do in very tiny steps
programming does not
scale for very complex
problems...
First approach, programming
Machine Learning
show the computer some real world data
the algorithm will learn from it
Machine Learning, implications
we can train computers to do things we
do not know how to do
Europython - Machine Learning for dummies with Python
ML example: character recognition
Not-MNIST dataset
Thousands of 28x28 grayscale images with labels
features x 1000s labels x 1000s
F G F J
ML step 1: get samples (training data)
ML step 2: choose an algorithm
Linear regression
Support Vector Mach.
k-Means
Decision Trees
Random Forests
Neural networks
Convolutional NN
Naive Bayes
ML step 3: train your algorithm
features x 1000s labels x 1000sML algorithm
F G F J
ML, last step: getting predictions
ML algorithmfeatures
(data)
prediction
D
Tricky Question
How good are our
predictions?
The Tools
The Tools: Python
● Opensource
● Expressive
● Interpreted, dynamically typed
● Widely used many different problems
● Batteries included: Notebook, Libraries
The Tools: sklearn
● Opensource, Python
● Wonderful documentation
● Support to full ML lifecycle:
○ Feature engineering
○ Algorithms
○ Validation
○ Datasets
A summary of ML process
● Get features (with labels)
● Choose and configure an algorithm
● Train your algorithm
● Do predictions
● Validate your results
train your model
tr_ds, _, tr_lbl, _ = train_test_split(dataset, labels,
train_size=size,
random_state=17)
clf = LogisticRegression()
clf.fit(tr_ds, tr_lbl) # fit with train dataset and train labels
train_ds test_ds
dataset
make predictions
pred = clf.predict(test_dataset)
How good are our predictions?
accuracy
test_predicions = clf.predict(test_dataset)
acc = accuracy_score(test_labels, test_predictions)
89% accuracy
Improving prediction results
Training data
Algorithm + config
Europython - Machine Learning for dummies with Python
Udacity - Deep Learning
Take machine Learning to the next level
ML branch based on algorithms that use multiple processing layers
● By Google
● Python and Tensorflow
● No wine for the moment :-(
The Tools: TensorFlow
● Opensource, Python
● Deep Learning
● Data flow graphs.
○ Nodes: mathematical operations
○ Edges: Tensors, multidimensional arrays
Simplest Neural Network
weight
b
i
a
s
S
O
F
T
M
A
X
X Y PREDweight
b
i
a
s
LAYER 1 LAYER 2
* + relu
* + softmax
Deep Learning as a chain of operations
Let’s recap
Europython - Machine Learning for dummies with Python
Europython - Machine Learning for dummies with Python
Europython - Machine Learning for dummies with Python
Europython - Machine Learning for dummies with Python
Europython - Machine Learning for dummies with Python
Europython - Machine Learning for dummies with Python
Europython - Machine Learning for dummies with Python
Thank you for your attention

More Related Content

PDF
Pybcn machine learning for dummies with python
PDF
Machine learning on Hadoop data lakes
PPTX
10 R Packages to Win Kaggle Competitions
PDF
Nikhil Garg, Engineering Manager, Quora at MLconf SF 2016
PPTX
Google Developer Groups Talk - TensorFlow
PPTX
Machine Learning Overview
PPTX
An overview of machine learning
PDF
A Folksonomy of styles, aka: other stylists also said and Subjective Influenc...
Pybcn machine learning for dummies with python
Machine learning on Hadoop data lakes
10 R Packages to Win Kaggle Competitions
Nikhil Garg, Engineering Manager, Quora at MLconf SF 2016
Google Developer Groups Talk - TensorFlow
Machine Learning Overview
An overview of machine learning
A Folksonomy of styles, aka: other stylists also said and Subjective Influenc...

What's hot (20)

PDF
Brief introduction to Machine Learning
PPTX
Tutorial on Deep learning and Applications
PDF
Introduction to Machine Learning with SciKit-Learn
PDF
Staying Shallow & Lean in a Deep Learning World
PDF
The Evolution of AutoML
PPTX
Ferruzza g automl deck
PDF
AutoML lectures (ACDL 2019)
PDF
AutoML - The Future of AI
PPTX
Model Drift Monitoring using Tensorflow Model Analysis
PDF
Automated Machine Learning
PPTX
An introduction to Machine Learning (and a little bit of Deep Learning)
PPTX
Overview of Machine Learning and Feature Engineering
PPTX
Machine learning basics
PDF
Strata 2016 - Lessons Learned from building real-life Machine Learning Systems
PPTX
Anima Anandkumar at AI Frontiers : Modern ML : Deep, distributed, Multi-dimen...
PDF
Generating Natural-Language Text with Neural Networks
PDF
Moving Your Machine Learning Models to Production with TensorFlow Extended
PPTX
Linear regression on 1 terabytes of data? Some crazy observations and actions
PDF
Automatic machine learning (AutoML) 101
PPTX
Machine learning (webinar)
Brief introduction to Machine Learning
Tutorial on Deep learning and Applications
Introduction to Machine Learning with SciKit-Learn
Staying Shallow & Lean in a Deep Learning World
The Evolution of AutoML
Ferruzza g automl deck
AutoML lectures (ACDL 2019)
AutoML - The Future of AI
Model Drift Monitoring using Tensorflow Model Analysis
Automated Machine Learning
An introduction to Machine Learning (and a little bit of Deep Learning)
Overview of Machine Learning and Feature Engineering
Machine learning basics
Strata 2016 - Lessons Learned from building real-life Machine Learning Systems
Anima Anandkumar at AI Frontiers : Modern ML : Deep, distributed, Multi-dimen...
Generating Natural-Language Text with Neural Networks
Moving Your Machine Learning Models to Production with TensorFlow Extended
Linear regression on 1 terabytes of data? Some crazy observations and actions
Automatic machine learning (AutoML) 101
Machine learning (webinar)
Ad

Viewers also liked (20)

PPTX
Machine learning for dummies - Azuges November 2016
PDF
Machine learning for dummies
PPTX
Elastically scalable architectures with microservices. The end of the monolith?
PDF
Machine Learning for Dummies
PPT
解決正確的問題 - 如何讓數據發揮影響力?
PPT
lec21.ppt
PPT
Machine Learning and Statistical Analysis
PDF
Statistical Machine Learning from Data - Introduction to ...
PDF
Introduction
PDF
Stanford Statistical Learning
PDF
Purchase prediction by statistical analysis (統計技術を用いた商品購買予測)
PDF
7 lessons to learn of Brazil defeat, to your company
PDF
Data Science For Dummies From a Dummy
PDF
ES6 metaprogramming unleashed
PPTX
Data science for advanced dummies
PDF
A short introduction to statistical learning
PPTX
Statistical Learning from Dialogues for Intelligent Assistants
PDF
Quero trabalhar com big data data science, como faço-
PDF
Data Science & Big Data, made in Switzerland
PPTX
Machine Learning Introduction for Digital Business Leaders
Machine learning for dummies - Azuges November 2016
Machine learning for dummies
Elastically scalable architectures with microservices. The end of the monolith?
Machine Learning for Dummies
解決正確的問題 - 如何讓數據發揮影響力?
lec21.ppt
Machine Learning and Statistical Analysis
Statistical Machine Learning from Data - Introduction to ...
Introduction
Stanford Statistical Learning
Purchase prediction by statistical analysis (統計技術を用いた商品購買予測)
7 lessons to learn of Brazil defeat, to your company
Data Science For Dummies From a Dummy
ES6 metaprogramming unleashed
Data science for advanced dummies
A short introduction to statistical learning
Statistical Learning from Dialogues for Intelligent Assistants
Quero trabalhar com big data data science, como faço-
Data Science & Big Data, made in Switzerland
Machine Learning Introduction for Digital Business Leaders
Ad

Similar to Europython - Machine Learning for dummies with Python (20)

PPTX
TensorFlow Event presentation08-12-2024.pptx
PDF
Introduction to ML.NET
PDF
Machine learning 101 Talk at Freshworks
PDF
Artificial Intelligence - Anna Uni -v1.pdf
PDF
Meetup 29042015
PPTX
Big Data & Machine Learning - TDC2013 Sao Paulo
PPTX
Big Data & Machine Learning - TDC2013 São Paulo - 12/0713
PDF
How to use Artificial Intelligence with Python? Edureka
PPTX
ML basics.pptx
PPTX
Primer to Machine Learning
PDF
Machine Learning: Inteligencia Artificial no es sólo un tema de Ciencia Ficci...
PDF
ML in Android
PDF
Machine Learning: Artificial Intelligence isn't just a Science Fiction topic
PPTX
Ai & ML workshop-1.pptx ppt presentation
PDF
A step towards machine learning at accionlabs
PPTX
Machine Learning Presentation - Vilnius Tech
PDF
AI meets Big Data
PDF
Koss Lab 세미나 오픈소스 인공지능(AI) 프레임웍파헤치기
PDF
What is Machine Learning Operations (MLOps)?
PPTX
Internship - Python - AI ML.pptx
TensorFlow Event presentation08-12-2024.pptx
Introduction to ML.NET
Machine learning 101 Talk at Freshworks
Artificial Intelligence - Anna Uni -v1.pdf
Meetup 29042015
Big Data & Machine Learning - TDC2013 Sao Paulo
Big Data & Machine Learning - TDC2013 São Paulo - 12/0713
How to use Artificial Intelligence with Python? Edureka
ML basics.pptx
Primer to Machine Learning
Machine Learning: Inteligencia Artificial no es sólo un tema de Ciencia Ficci...
ML in Android
Machine Learning: Artificial Intelligence isn't just a Science Fiction topic
Ai & ML workshop-1.pptx ppt presentation
A step towards machine learning at accionlabs
Machine Learning Presentation - Vilnius Tech
AI meets Big Data
Koss Lab 세미나 오픈소스 인공지능(AI) 프레임웍파헤치기
What is Machine Learning Operations (MLOps)?
Internship - Python - AI ML.pptx

More from Javier Arias Losada (6)

PDF
Why do lazy developers write beautiful code?
PDF
OSCON - ES6 metaprogramming unleashed
PDF
Full Stack Bus with Javascript, RabbitMQ and Postal.js
PDF
Rabbitmq, amqp Intro - Messaging Patterns
PDF
NoSQL Matters BCN 2013. Sprayer Low Latency, Reliable, Mutichannel Messaging
PDF
From Java to Python: beating the Stockholm syndrome
Why do lazy developers write beautiful code?
OSCON - ES6 metaprogramming unleashed
Full Stack Bus with Javascript, RabbitMQ and Postal.js
Rabbitmq, amqp Intro - Messaging Patterns
NoSQL Matters BCN 2013. Sprayer Low Latency, Reliable, Mutichannel Messaging
From Java to Python: beating the Stockholm syndrome

Recently uploaded (20)

PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PPTX
Essential Infomation Tech presentation.pptx
PPTX
Materi-Enum-and-Record-Data-Type (1).pptx
PDF
Softaken Excel to vCard Converter Software.pdf
DOCX
The Five Best AI Cover Tools in 2025.docx
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
L1 - Introduction to python Backend.pptx
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Digital Strategies for Manufacturing Companies
PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
ISO 45001 Occupational Health and Safety Management System
PDF
System and Network Administraation Chapter 3
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
ManageIQ - Sprint 268 Review - Slide Deck
Essential Infomation Tech presentation.pptx
Materi-Enum-and-Record-Data-Type (1).pptx
Softaken Excel to vCard Converter Software.pdf
The Five Best AI Cover Tools in 2025.docx
Odoo POS Development Services by CandidRoot Solutions
Understanding Forklifts - TECH EHS Solution
L1 - Introduction to python Backend.pptx
How to Migrate SBCGlobal Email to Yahoo Easily
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Upgrade and Innovation Strategies for SAP ERP Customers
Digital Strategies for Manufacturing Companies
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
Wondershare Filmora 15 Crack With Activation Key [2025
Design an Analysis of Algorithms I-SECS-1021-03
ISO 45001 Occupational Health and Safety Management System
System and Network Administraation Chapter 3

Europython - Machine Learning for dummies with Python