SlideShare a Scribd company logo
1 of 22
Download to read offline
Introduction to
Machine Learning and
AI
Matt Hamilton
Developer Advocate
SW Mobile
February 25, 2020
What is the difference
between Machine
Learning (ML) and
Artificial Intelligence
(AI)?
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 2
In short…
- If you are reading a Powerpoint: it is AI
- If you are reading Python: it is ML
[ Yes that is a flippant answer. Artificial Intelligence is a much broader
field, of which ML is just one aspect/implementation. But for now this is
a useful simplification ]
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 3
What is Machine
Learning?
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 4
Just a function that takes input and gives outputs, but the bit in the middle is ‘learned’ rather than explicitly coded. E.g.
What is Machine
Learning?
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 5
Just a function that takes input and gives outputs, but the bit in the middle is ‘learned’ rather than explicitly coded. E.g.
Types of
machine
learning
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 6
• Supervised learning
• Unsupervised learning
• Reinforcement learning
• Generative Adversarial Networks
Supervised
Learning
We train the algorithm with
“known” data then ask it to
predict unknown.
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 7
Classification
e.g. “Here is 100 pictures of cats, and
100 pictures of dogs, predict whether
this new image is a cat or a dog”
Regression
e.g. “Here is historical temperature data
for Bristol, predict what the
temperature will be tomorrow”
Unsupervised
learning
We have no ‘labels’ for the
data ahead of time
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 8
Clustering
e.g. “Find all towns on this map of
mobile phone towers”
Association
e.g. “What other alerts do we get when
we get a disk-full alert?”
Reinforcement
Learning
“Learning by playing or doing”
Rules are not defined at the start, but a
reward is given based on behaviour
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 9
Generative
Adversarial
Networks
Generating new data (images or text)
Two neural networks try to out-do each
other
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 10
Types of machine
learning algorithms
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 11
There are many types of machine
learning algorithms, eg:
• Naive Bayes Classifier
• Support Vector Machines
• Random Forest
• Neural Networks
Simple Neural Network
example (Keras)
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 12
# compile the model
model.compile(optimizer='adam', loss='mse')
# train the model on first 8 values of data
model.fit(X[:8], y[:8], epochs=7000,
batch_size=32, verbose=0)
# predict the last two (unseen) values
preds = model.predict(X[8:])
print(preds)
import numpy as np
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
# define our data
X = np.array([0, 1, 2, 3, 4, 5, 6, 8, 9, 10])
y = np.array([0, 2, 4, 6, 8, 10, 12, 16, 18, 20])
# define out neural network model
model = Sequential()
model.add(Dense(5, input_shape=(1,))) # 5 hidden
neurons
model.add(Dense(1)) # 1 output neuron
Common issues starting
with ML
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 13
How do I frame the problem? Is it
classification? Is it regression? What do
I actually want to know?
• “What is the percentage chance of
rain tomorrow?”
Regression
• “Is there a greater than 60% chance
of rain tomorrow?”
Classification
Pre-processing data
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 14
Dealing with missing data
Making data stationary
Pre-processing data
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 15
De-trend data
Pre-processing data
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 16
Unbalanced sets (classification)
Feature Engineering
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 17
Using domain knowledge to feed some more meaningful
data to the algorithm
This is where much of the work and skill is in effectively
utilising ML.
’Mlle’ => ‘Miss’
‘Mme’ => ‘Mrs’
'Lady', 'Countess','Capt', ‘Dr', 'Major', 'Rev',
‘Sir', 'Jonkheer', ‘Dona' => ‘special’
What do we know of the cabin numbering and layout?
- Cabin A14 => Deck “A” = First class, amidships
Feature Engineering
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 18
Formatting data (e.g. financial limit order book data) as ‘graphical’ then use CNN to categorise
Toolkits
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 19
• Swift for Tensorflow
• CoreML
• Tensorflow lite for Android
• Scikit-learn
• Keras (now part of Tensorflow)
• Tensorflow
• Torch (pyTorch)
• Caffe
• Theano
IBM tools
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 20
• Watson Machine
Learning
• Watson AutoAI
• Watson Studio
Thank you.
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 21
Matt Hamilton
Developer Advocate
Matthew.Hamilton1@ibm.com
@hammertoe
IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 22

More Related Content

Similar to Intro to Machine Learning and AI

Decision Optimization - CPLEX Optimization Studio - Product Overview(2).PPTX
Decision Optimization - CPLEX Optimization Studio - Product Overview(2).PPTXDecision Optimization - CPLEX Optimization Studio - Product Overview(2).PPTX
Decision Optimization - CPLEX Optimization Studio - Product Overview(2).PPTXSanjayKPrasad2
 
Intel 20180608 v2
Intel 20180608 v2Intel 20180608 v2
Intel 20180608 v2ISSIP
 
Constraint Programming - An Alternative Approach to Heuristics in Scheduling
Constraint Programming - An Alternative Approach to Heuristics in SchedulingConstraint Programming - An Alternative Approach to Heuristics in Scheduling
Constraint Programming - An Alternative Approach to Heuristics in SchedulingEray Cakici
 
IBM i & Data Science in the AI era.
IBM i & Data Science in the AI era.  IBM i & Data Science in the AI era.
IBM i & Data Science in the AI era. Benoit Marolleau
 
Keep It Simple Series AI Machine Learning lite
Keep It Simple Series AI Machine Learning liteKeep It Simple Series AI Machine Learning lite
Keep It Simple Series AI Machine Learning liteOuahid Seghir
 
Data Engineering Data warehousing Pentaho
Data Engineering  Data warehousing  PentahoData Engineering  Data warehousing  Pentaho
Data Engineering Data warehousing PentahoPraveenHegde20
 
Scaling up Deep Learning by Scaling Down
Scaling up Deep Learning by Scaling DownScaling up Deep Learning by Scaling Down
Scaling up Deep Learning by Scaling DownDatabricks
 
Scaling up deep learning by scaling down
Scaling up deep learning by scaling downScaling up deep learning by scaling down
Scaling up deep learning by scaling downNick Pentreath
 
Machine Learning and Power AI Workshop v4
Machine Learning and Power AI Workshop v4Machine Learning and Power AI Workshop v4
Machine Learning and Power AI Workshop v4LennartF
 
“Introducing Machine Learning and How to Teach Machines to See,” a Presentati...
“Introducing Machine Learning and How to Teach Machines to See,” a Presentati...“Introducing Machine Learning and How to Teach Machines to See,” a Presentati...
“Introducing Machine Learning and How to Teach Machines to See,” a Presentati...Edge AI and Vision Alliance
 
Northwestern 20181004 v9
Northwestern 20181004 v9Northwestern 20181004 v9
Northwestern 20181004 v9ISSIP
 
A DevOps Practitioner’s Guide to AI and ML
A DevOps Practitioner’s Guide to AI and MLA DevOps Practitioner’s Guide to AI and ML
A DevOps Practitioner’s Guide to AI and MLTiffany Jachja
 
Past, present and future of predictive APIs - Poul Petersen
Past, present and future of predictive APIs - Poul PetersenPast, present and future of predictive APIs - Poul Petersen
Past, present and future of predictive APIs - Poul PetersenPAPIs.io
 
The New Three Musketeers–onecics4all-Isabel Arnold
The New Three Musketeers–onecics4all-Isabel ArnoldThe New Three Musketeers–onecics4all-Isabel Arnold
The New Three Musketeers–onecics4all-Isabel Arnoldnick_garrod
 
G111614 top-trends-sydney2019-v1910a
G111614 top-trends-sydney2019-v1910aG111614 top-trends-sydney2019-v1910a
G111614 top-trends-sydney2019-v1910aTony Pearson
 
2019 Top IT Trends - Understanding the fundamentals of the next generation ...
2019 Top IT Trends - Understanding the  fundamentals of the next  generation ...2019 Top IT Trends - Understanding the  fundamentals of the next  generation ...
2019 Top IT Trends - Understanding the fundamentals of the next generation ...Tony Pearson
 
Sir 20200115 v8
Sir 20200115 v8Sir 20200115 v8
Sir 20200115 v8ISSIP
 
Build Machine Learning Models with Amazon SageMaker (April 2019)
Build Machine Learning Models with Amazon SageMaker (April 2019)Build Machine Learning Models with Amazon SageMaker (April 2019)
Build Machine Learning Models with Amazon SageMaker (April 2019)Julien SIMON
 
Creating a Machine Learning Model on the Cloud
Creating a Machine Learning Model on the CloudCreating a Machine Learning Model on the Cloud
Creating a Machine Learning Model on the CloudAlexander Al Basosi
 

Similar to Intro to Machine Learning and AI (20)

Decision Optimization - CPLEX Optimization Studio - Product Overview(2).PPTX
Decision Optimization - CPLEX Optimization Studio - Product Overview(2).PPTXDecision Optimization - CPLEX Optimization Studio - Product Overview(2).PPTX
Decision Optimization - CPLEX Optimization Studio - Product Overview(2).PPTX
 
Intel 20180608 v2
Intel 20180608 v2Intel 20180608 v2
Intel 20180608 v2
 
Constraint Programming - An Alternative Approach to Heuristics in Scheduling
Constraint Programming - An Alternative Approach to Heuristics in SchedulingConstraint Programming - An Alternative Approach to Heuristics in Scheduling
Constraint Programming - An Alternative Approach to Heuristics in Scheduling
 
IBM i & Data Science in the AI era.
IBM i & Data Science in the AI era.  IBM i & Data Science in the AI era.
IBM i & Data Science in the AI era.
 
Keep It Simple Series AI Machine Learning lite
Keep It Simple Series AI Machine Learning liteKeep It Simple Series AI Machine Learning lite
Keep It Simple Series AI Machine Learning lite
 
Data Engineering Data warehousing Pentaho
Data Engineering  Data warehousing  PentahoData Engineering  Data warehousing  Pentaho
Data Engineering Data warehousing Pentaho
 
Scaling up Deep Learning by Scaling Down
Scaling up Deep Learning by Scaling DownScaling up Deep Learning by Scaling Down
Scaling up Deep Learning by Scaling Down
 
Scaling up deep learning by scaling down
Scaling up deep learning by scaling downScaling up deep learning by scaling down
Scaling up deep learning by scaling down
 
Machine Learning and Power AI Workshop v4
Machine Learning and Power AI Workshop v4Machine Learning and Power AI Workshop v4
Machine Learning and Power AI Workshop v4
 
“Introducing Machine Learning and How to Teach Machines to See,” a Presentati...
“Introducing Machine Learning and How to Teach Machines to See,” a Presentati...“Introducing Machine Learning and How to Teach Machines to See,” a Presentati...
“Introducing Machine Learning and How to Teach Machines to See,” a Presentati...
 
Northwestern 20181004 v9
Northwestern 20181004 v9Northwestern 20181004 v9
Northwestern 20181004 v9
 
A DevOps Practitioner’s Guide to AI and ML
A DevOps Practitioner’s Guide to AI and MLA DevOps Practitioner’s Guide to AI and ML
A DevOps Practitioner’s Guide to AI and ML
 
Past, present and future of predictive APIs - Poul Petersen
Past, present and future of predictive APIs - Poul PetersenPast, present and future of predictive APIs - Poul Petersen
Past, present and future of predictive APIs - Poul Petersen
 
The New Three Musketeers–onecics4all-Isabel Arnold
The New Three Musketeers–onecics4all-Isabel ArnoldThe New Three Musketeers–onecics4all-Isabel Arnold
The New Three Musketeers–onecics4all-Isabel Arnold
 
G111614 top-trends-sydney2019-v1910a
G111614 top-trends-sydney2019-v1910aG111614 top-trends-sydney2019-v1910a
G111614 top-trends-sydney2019-v1910a
 
2019 Top IT Trends - Understanding the fundamentals of the next generation ...
2019 Top IT Trends - Understanding the  fundamentals of the next  generation ...2019 Top IT Trends - Understanding the  fundamentals of the next  generation ...
2019 Top IT Trends - Understanding the fundamentals of the next generation ...
 
IBM AI at Scale
IBM AI at ScaleIBM AI at Scale
IBM AI at Scale
 
Sir 20200115 v8
Sir 20200115 v8Sir 20200115 v8
Sir 20200115 v8
 
Build Machine Learning Models with Amazon SageMaker (April 2019)
Build Machine Learning Models with Amazon SageMaker (April 2019)Build Machine Learning Models with Amazon SageMaker (April 2019)
Build Machine Learning Models with Amazon SageMaker (April 2019)
 
Creating a Machine Learning Model on the Cloud
Creating a Machine Learning Model on the CloudCreating a Machine Learning Model on the Cloud
Creating a Machine Learning Model on the Cloud
 

More from Matt Hamilton

Ceci n’est pas un canard - Machine Learning and Generative Adversarial Networks
Ceci n’est pas un canard - Machine Learning and Generative Adversarial NetworksCeci n’est pas un canard - Machine Learning and Generative Adversarial Networks
Ceci n’est pas un canard - Machine Learning and Generative Adversarial NetworksMatt Hamilton
 
Adventures in Wonderland - A Plone Developer's Year in iOS
Adventures in Wonderland - A Plone Developer's Year in iOSAdventures in Wonderland - A Plone Developer's Year in iOS
Adventures in Wonderland - A Plone Developer's Year in iOSMatt Hamilton
 
A Journey Through Open Source
A Journey Through Open SourceA Journey Through Open Source
A Journey Through Open SourceMatt Hamilton
 
Plone Intranet talk at Plone Open Garden 2014, Sorrento
Plone Intranet talk at Plone Open Garden 2014, SorrentoPlone Intranet talk at Plone Open Garden 2014, Sorrento
Plone Intranet talk at Plone Open Garden 2014, SorrentoMatt Hamilton
 
Open Source, The Natural Fit for Content Management in the Enterprise
Open Source, The Natural Fit for Content Management in the EnterpriseOpen Source, The Natural Fit for Content Management in the Enterprise
Open Source, The Natural Fit for Content Management in the EnterpriseMatt Hamilton
 
Supercharge Your Career with Open Source
Supercharge Your Career with Open SourceSupercharge Your Career with Open Source
Supercharge Your Career with Open SourceMatt Hamilton
 
Plone and Sharepoint
Plone and SharepointPlone and Sharepoint
Plone and SharepointMatt Hamilton
 
How to get started with the Pluggable Authentication System
How to get started with the Pluggable Authentication SystemHow to get started with the Pluggable Authentication System
How to get started with the Pluggable Authentication SystemMatt Hamilton
 
Plone and Single-Sign On - Active Directory and the Holy Grail
Plone and Single-Sign On - Active Directory and the Holy GrailPlone and Single-Sign On - Active Directory and the Holy Grail
Plone and Single-Sign On - Active Directory and the Holy GrailMatt Hamilton
 
BathCamp #32 - CMS Smackdown! - Plone
BathCamp #32 - CMS Smackdown! - PloneBathCamp #32 - CMS Smackdown! - Plone
BathCamp #32 - CMS Smackdown! - PloneMatt Hamilton
 
Mistakes Made and Lessons Learnt Scaling Plone post-Launch
Mistakes Made and Lessons Learnt Scaling Plone post-LaunchMistakes Made and Lessons Learnt Scaling Plone post-Launch
Mistakes Made and Lessons Learnt Scaling Plone post-LaunchMatt Hamilton
 
Plone Symposium East 2011 Keynote: Plone, A Solution not a Product
Plone Symposium East 2011 Keynote: Plone, A Solution not a ProductPlone Symposium East 2011 Keynote: Plone, A Solution not a Product
Plone Symposium East 2011 Keynote: Plone, A Solution not a ProductMatt Hamilton
 
Plone: Event Driven Programming
Plone: Event Driven ProgrammingPlone: Event Driven Programming
Plone: Event Driven ProgrammingMatt Hamilton
 
Mountain Tops to Archipelagos - The People Behind Plone (+AUDIO)
Mountain Tops to Archipelagos - The People Behind Plone (+AUDIO)Mountain Tops to Archipelagos - The People Behind Plone (+AUDIO)
Mountain Tops to Archipelagos - The People Behind Plone (+AUDIO)Matt Hamilton
 
The Flexibility of Open Source - Plone in the Public Sector
The Flexibility of Open Source - Plone in the Public SectorThe Flexibility of Open Source - Plone in the Public Sector
The Flexibility of Open Source - Plone in the Public SectorMatt Hamilton
 
The Flexibility of Open Source: A Case Study of a large Corporate Intranet
The Flexibility of Open Source: A Case Study of a large Corporate IntranetThe Flexibility of Open Source: A Case Study of a large Corporate Intranet
The Flexibility of Open Source: A Case Study of a large Corporate IntranetMatt Hamilton
 
Plone - Revised Roadmap: Plone 3,4,5 and beyond - Dutch Plone Users Day (+AUDIO)
Plone - Revised Roadmap: Plone 3,4,5 and beyond - Dutch Plone Users Day (+AUDIO)Plone - Revised Roadmap: Plone 3,4,5 and beyond - Dutch Plone Users Day (+AUDIO)
Plone - Revised Roadmap: Plone 3,4,5 and beyond - Dutch Plone Users Day (+AUDIO)Matt Hamilton
 
An introduction to Zope Page Templates and their use outside of Zope (+Audio)
An introduction to Zope Page Templates and their use outside of Zope (+Audio)An introduction to Zope Page Templates and their use outside of Zope (+Audio)
An introduction to Zope Page Templates and their use outside of Zope (+Audio)Matt Hamilton
 
Lipstick On a Pig (+Audio)
Lipstick On a Pig (+Audio)Lipstick On a Pig (+Audio)
Lipstick On a Pig (+Audio)Matt Hamilton
 
Lipstick on a Pig - European Plone Symposium 2009
Lipstick on a Pig - European Plone Symposium 2009Lipstick on a Pig - European Plone Symposium 2009
Lipstick on a Pig - European Plone Symposium 2009Matt Hamilton
 

More from Matt Hamilton (20)

Ceci n’est pas un canard - Machine Learning and Generative Adversarial Networks
Ceci n’est pas un canard - Machine Learning and Generative Adversarial NetworksCeci n’est pas un canard - Machine Learning and Generative Adversarial Networks
Ceci n’est pas un canard - Machine Learning and Generative Adversarial Networks
 
Adventures in Wonderland - A Plone Developer's Year in iOS
Adventures in Wonderland - A Plone Developer's Year in iOSAdventures in Wonderland - A Plone Developer's Year in iOS
Adventures in Wonderland - A Plone Developer's Year in iOS
 
A Journey Through Open Source
A Journey Through Open SourceA Journey Through Open Source
A Journey Through Open Source
 
Plone Intranet talk at Plone Open Garden 2014, Sorrento
Plone Intranet talk at Plone Open Garden 2014, SorrentoPlone Intranet talk at Plone Open Garden 2014, Sorrento
Plone Intranet talk at Plone Open Garden 2014, Sorrento
 
Open Source, The Natural Fit for Content Management in the Enterprise
Open Source, The Natural Fit for Content Management in the EnterpriseOpen Source, The Natural Fit for Content Management in the Enterprise
Open Source, The Natural Fit for Content Management in the Enterprise
 
Supercharge Your Career with Open Source
Supercharge Your Career with Open SourceSupercharge Your Career with Open Source
Supercharge Your Career with Open Source
 
Plone and Sharepoint
Plone and SharepointPlone and Sharepoint
Plone and Sharepoint
 
How to get started with the Pluggable Authentication System
How to get started with the Pluggable Authentication SystemHow to get started with the Pluggable Authentication System
How to get started with the Pluggable Authentication System
 
Plone and Single-Sign On - Active Directory and the Holy Grail
Plone and Single-Sign On - Active Directory and the Holy GrailPlone and Single-Sign On - Active Directory and the Holy Grail
Plone and Single-Sign On - Active Directory and the Holy Grail
 
BathCamp #32 - CMS Smackdown! - Plone
BathCamp #32 - CMS Smackdown! - PloneBathCamp #32 - CMS Smackdown! - Plone
BathCamp #32 - CMS Smackdown! - Plone
 
Mistakes Made and Lessons Learnt Scaling Plone post-Launch
Mistakes Made and Lessons Learnt Scaling Plone post-LaunchMistakes Made and Lessons Learnt Scaling Plone post-Launch
Mistakes Made and Lessons Learnt Scaling Plone post-Launch
 
Plone Symposium East 2011 Keynote: Plone, A Solution not a Product
Plone Symposium East 2011 Keynote: Plone, A Solution not a ProductPlone Symposium East 2011 Keynote: Plone, A Solution not a Product
Plone Symposium East 2011 Keynote: Plone, A Solution not a Product
 
Plone: Event Driven Programming
Plone: Event Driven ProgrammingPlone: Event Driven Programming
Plone: Event Driven Programming
 
Mountain Tops to Archipelagos - The People Behind Plone (+AUDIO)
Mountain Tops to Archipelagos - The People Behind Plone (+AUDIO)Mountain Tops to Archipelagos - The People Behind Plone (+AUDIO)
Mountain Tops to Archipelagos - The People Behind Plone (+AUDIO)
 
The Flexibility of Open Source - Plone in the Public Sector
The Flexibility of Open Source - Plone in the Public SectorThe Flexibility of Open Source - Plone in the Public Sector
The Flexibility of Open Source - Plone in the Public Sector
 
The Flexibility of Open Source: A Case Study of a large Corporate Intranet
The Flexibility of Open Source: A Case Study of a large Corporate IntranetThe Flexibility of Open Source: A Case Study of a large Corporate Intranet
The Flexibility of Open Source: A Case Study of a large Corporate Intranet
 
Plone - Revised Roadmap: Plone 3,4,5 and beyond - Dutch Plone Users Day (+AUDIO)
Plone - Revised Roadmap: Plone 3,4,5 and beyond - Dutch Plone Users Day (+AUDIO)Plone - Revised Roadmap: Plone 3,4,5 and beyond - Dutch Plone Users Day (+AUDIO)
Plone - Revised Roadmap: Plone 3,4,5 and beyond - Dutch Plone Users Day (+AUDIO)
 
An introduction to Zope Page Templates and their use outside of Zope (+Audio)
An introduction to Zope Page Templates and their use outside of Zope (+Audio)An introduction to Zope Page Templates and their use outside of Zope (+Audio)
An introduction to Zope Page Templates and their use outside of Zope (+Audio)
 
Lipstick On a Pig (+Audio)
Lipstick On a Pig (+Audio)Lipstick On a Pig (+Audio)
Lipstick On a Pig (+Audio)
 
Lipstick on a Pig - European Plone Symposium 2009
Lipstick on a Pig - European Plone Symposium 2009Lipstick on a Pig - European Plone Symposium 2009
Lipstick on a Pig - European Plone Symposium 2009
 

Recently uploaded

Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 

Recently uploaded (20)

Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

Intro to Machine Learning and AI

  • 1. Introduction to Machine Learning and AI Matt Hamilton Developer Advocate SW Mobile February 25, 2020
  • 2. What is the difference between Machine Learning (ML) and Artificial Intelligence (AI)? IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 2
  • 3. In short… - If you are reading a Powerpoint: it is AI - If you are reading Python: it is ML [ Yes that is a flippant answer. Artificial Intelligence is a much broader field, of which ML is just one aspect/implementation. But for now this is a useful simplification ] IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 3
  • 4. What is Machine Learning? IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 4 Just a function that takes input and gives outputs, but the bit in the middle is ‘learned’ rather than explicitly coded. E.g.
  • 5. What is Machine Learning? IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 5 Just a function that takes input and gives outputs, but the bit in the middle is ‘learned’ rather than explicitly coded. E.g.
  • 6. Types of machine learning IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 6 • Supervised learning • Unsupervised learning • Reinforcement learning • Generative Adversarial Networks
  • 7. Supervised Learning We train the algorithm with “known” data then ask it to predict unknown. IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 7 Classification e.g. “Here is 100 pictures of cats, and 100 pictures of dogs, predict whether this new image is a cat or a dog” Regression e.g. “Here is historical temperature data for Bristol, predict what the temperature will be tomorrow”
  • 8. Unsupervised learning We have no ‘labels’ for the data ahead of time IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 8 Clustering e.g. “Find all towns on this map of mobile phone towers” Association e.g. “What other alerts do we get when we get a disk-full alert?”
  • 9. Reinforcement Learning “Learning by playing or doing” Rules are not defined at the start, but a reward is given based on behaviour IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 9
  • 10. Generative Adversarial Networks Generating new data (images or text) Two neural networks try to out-do each other IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 10
  • 11. Types of machine learning algorithms IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 11 There are many types of machine learning algorithms, eg: • Naive Bayes Classifier • Support Vector Machines • Random Forest • Neural Networks
  • 12. Simple Neural Network example (Keras) IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 12 # compile the model model.compile(optimizer='adam', loss='mse') # train the model on first 8 values of data model.fit(X[:8], y[:8], epochs=7000, batch_size=32, verbose=0) # predict the last two (unseen) values preds = model.predict(X[8:]) print(preds) import numpy as np import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense # define our data X = np.array([0, 1, 2, 3, 4, 5, 6, 8, 9, 10]) y = np.array([0, 2, 4, 6, 8, 10, 12, 16, 18, 20]) # define out neural network model model = Sequential() model.add(Dense(5, input_shape=(1,))) # 5 hidden neurons model.add(Dense(1)) # 1 output neuron
  • 13. Common issues starting with ML IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 13 How do I frame the problem? Is it classification? Is it regression? What do I actually want to know? • “What is the percentage chance of rain tomorrow?” Regression • “Is there a greater than 60% chance of rain tomorrow?” Classification
  • 14. Pre-processing data IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 14 Dealing with missing data Making data stationary
  • 15. Pre-processing data IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 15 De-trend data
  • 16. Pre-processing data IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 16 Unbalanced sets (classification)
  • 17. Feature Engineering IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 17 Using domain knowledge to feed some more meaningful data to the algorithm This is where much of the work and skill is in effectively utilising ML. ’Mlle’ => ‘Miss’ ‘Mme’ => ‘Mrs’ 'Lady', 'Countess','Capt', ‘Dr', 'Major', 'Rev', ‘Sir', 'Jonkheer', ‘Dona' => ‘special’ What do we know of the cabin numbering and layout? - Cabin A14 => Deck “A” = First class, amidships
  • 18. Feature Engineering IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 18 Formatting data (e.g. financial limit order book data) as ‘graphical’ then use CNN to categorise
  • 19. Toolkits IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 19 • Swift for Tensorflow • CoreML • Tensorflow lite for Android • Scikit-learn • Keras (now part of Tensorflow) • Tensorflow • Torch (pyTorch) • Caffe • Theano
  • 20. IBM tools IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 20 • Watson Machine Learning • Watson AutoAI • Watson Studio
  • 21. Thank you. IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 21 Matt Hamilton Developer Advocate Matthew.Hamilton1@ibm.com @hammertoe
  • 22. IBM Developer Advocate / Intro to Machine Learning and AI / February 25th, 2020 / © 2020 IBM Corporation 22