Learning Machine Learning

J
Learning Machine
Learning
A little intro to a (not that complex) world
@joel__lord
#phpbnl18
About Me
@joel__lord
joellord
@joel__lord
#phpbnl18
Our Agenda for today…
• AI vs ML
• Deep Learning &
Neural Networks
• Supervised vs
unsupervised
• Naïve Bayes Classifier
• Genetic Algorithms
@joel__lord
#phpbnl18
@joel__lord
#phpbnl18
Artificial Intelligence
Artificial intelligence (AI)
is intelligence exhibited by machines.
In computer science, the field of AI
research defines itself as the study of
"intelligent agents": any device that
perceives its environment and takes actions
that maximize its chance of success at
some goal.
@joel__lord
#phpbnl18
Artificial Intelligence
“takes actions that
maximize its chance of
success at some goal”
@joel__lord
#phpbnl18
Examples in real life
@joel__lord
#phpbnl18
Machine Learning
Machine learning (ML) is the subfield
of computer science that gives "computers
the ability to learn without being explicitly
programmed."
@joel__lord
#phpbnl18
@joel__lord
#phpbnl18
@joel__lord
#phpbnl18
@joel__lord
#phpbnl18
@joel__lord
#phpbnl18
@joel__lord
#phpbnl18
“Don’t be afraid of artificial
intelligence, be afraid of humanity.”
@joel__lord
#phpbnl18
Deep Learning
& Big Data
• Explosion of digital data
• Can’t be processed with
traditional methods
anymore
@joel__lord
#phpbnl18
Neural
Networks
• Breaking big
problems in small
layers
@joel__lord
#phpbnl18
Supervised
Learning
• Requires feedback
• Starts with nothing
and increases its
understanding
• Useless if the data
is of bad quality
• Use cases:
• Classification
@joel__lord
#phpbnl18
Unsupervised
Learning
• There is no feedback
• Good in the case of no right or
wrong answer
• Helps to identify patterns or data
structures
• Use case:
• You might also be interested
in…
• Grouping customers by
purchasing behaviors
@joel__lord
#phpbnl18
The Naïve Bayes Classifier
@joel__lord
#phpbnl18
Bayes Theorem
@joel__lord
#phpbnl18
Bayes Theorem
where
@joel__lord
#phpbnl18
Bayes Theorem
•  
@joel__lord
#phpbnl18
Bayes Theorem
•  
@joel__lord
#phpbnl18
Naive Bayes
Classifier
• Let’s look at a concrete
example.
• You never know what
you’re gonna get
@joel__lord
#phpbnl18
Probability that a chocolate has nuts
Nuts No Nuts
Round 25% 75%
Square 75% 25%
Dark 10% 90%
Light 90% 10%
@joel__lord
#phpbnl18
Do round, light chocolates have nuts?
Nuts No Nuts
Round 25% 75% 0.25 0.75
Square 75% 25% - -
Dark 10% 90% - -
Light 90% 10% 0.9 0.1
@joel__lord
#phpbnl18
Do round, light chocolates have nuts?
Nuts No Nuts
Round 25% 75% 0.25 0.75
Square 75% 25% - -
Dark 10% 90% - -
Light 90% 10% 0.9 0.1
0.225 0.075
@joel__lord
#phpbnl18
Do round, light chocolates have nuts?
Nuts No Nuts
Round 25% 75% 0.25 0.75
Square 75% 25% - -
Dark 10% 90% - -
Light 90% 10% 0.9 0.1
0.225 0.075
 
@joel__lord
#phpbnl18
Naïve Bayes Classifier in code
var Classifier = function() {
this.dictionaries = {};
};
Classifier.prototype.classify = function(text, group) {
};
Classifier.prototype.categorize = function(text) {
};
@joel__lord
#phpbnl18
@joel__lord
#phpbnl18
Sentiment
Analysis
• Not Machine
Learning
• Uses classifiers and
AFINN-165 (and
emojis)
@joel__lord
#phpbnl18
Sentiment
Analysis
• Javascript:
• npm install
sentiment
• PHP:
• composer require
risan/sentiment-
analysis
@joel__lord
#phpbnl18
Genetic
Algorithm
• Awesome shit!
@joel__lord
#phpbnl18
Genetic
Algorithm
• Create a population of
random individuals
• Keep the closest individuals
• Keep a few random
individuals
• Introduce random
mutations
• Randomly create ”children”
• Magically end up with a
valid solution
@joel__lord
#phpbnl18
Genetic
Algorithm
• Create a population of
random individuals
• Keep the closest individuals
• Keep a few random
individuals
• Introduce random
mutations
• Randomly create ”children”
• Magically end up with a
valid solution
@joel__lord
#phpbnl18
Genetic Algorithm
Credit: AutoDesk https://autodeskresearch.com/projects/
Dreamcatcher
@joel__lord
#phpbnl18
https://www.youtube.com/watch?v=pgaEE27nsQw
@joel__lord
#phpbnl18
Genetic Algorithm in code
//Declare Consts
function randomInt(min, max) {…}
function random(min, max) {…}
function fitness(individual) {…}
function sortByFitness(population) {…}
function randomIndividual() {…}
function randomPopulation(size) {…}
function mutate(population) {…}
function reproduce(father, mother) {…}
function evolve(population) {…}
function findSolution() {
var population = randomPopulation(POP_SIZE);
var generation = 0;
while (fitness(population[0]) > CLOSE_ENOUGH) {
generation++;
population = evolve(population);
}
return {solution: population[0], generations: generation};
}
var sol = findSolution();
@joel__lord
#phpbnl18
What did we learn?
• Machine Learning and Artificial Intelligence
• Big Data and Deep Learning
• Supervised vs unsupervised
• Basic Algorithms
• Naïve Bayes Classifier
• Sentiment Analysis
• Genetic Algorithm
• Hopefully, you don’t feel intimidated by ML anymore
Presented By
JOEL LORD
PHP Benelux, January 26th 2018
@joel__lord
joellord
Thank you!
Presented By
JOEL LORD
PHP Benelux, January 26th 2018
@joel__lord
joellord
Questions?
Impact of parameters on Genetic Algorithms
1 of 42

Recommended

Learning Machine Learning by
Learning Machine LearningLearning Machine Learning
Learning Machine LearningJoel Lord
452 views45 slides
Learning About Machine Learning by
Learning About Machine LearningLearning About Machine Learning
Learning About Machine LearningJoel Lord
245 views43 slides
Learning About Machine Learning by
Learning About Machine LearningLearning About Machine Learning
Learning About Machine LearningJoel Lord
582 views42 slides
Learning Machine Learning by
Learning Machine LearningLearning Machine Learning
Learning Machine LearningJoel Lord
568 views42 slides
SearchLove San Diego 2017 | Michael King | Machine Doing by
SearchLove San Diego 2017 | Michael King | Machine DoingSearchLove San Diego 2017 | Michael King | Machine Doing
SearchLove San Diego 2017 | Michael King | Machine DoingDistilled
3.7K views132 slides
AI | Now + Next by
AI | Now + NextAI | Now + Next
AI | Now + NextAnkit Sharma
4.1K views43 slides

More Related Content

Similar to Learning Machine Learning

Reinforcement Learning In AI Powerpoint Presentation Slide Templates Complete... by
Reinforcement Learning In AI Powerpoint Presentation Slide Templates Complete...Reinforcement Learning In AI Powerpoint Presentation Slide Templates Complete...
Reinforcement Learning In AI Powerpoint Presentation Slide Templates Complete...SlideTeam
475 views98 slides
Machine Learning for Marketers by Mike King at The Inbounder New York by
Machine Learning for Marketers by Mike King at The Inbounder New YorkMachine Learning for Marketers by Mike King at The Inbounder New York
Machine Learning for Marketers by Mike King at The Inbounder New YorkWe Are Marketing
4.7K views151 slides
HR Analytics: Using Machine Learning to Predict Employee Turnover - Matt Danc... by
HR Analytics: Using Machine Learning to Predict Employee Turnover - Matt Danc...HR Analytics: Using Machine Learning to Predict Employee Turnover - Matt Danc...
HR Analytics: Using Machine Learning to Predict Employee Turnover - Matt Danc...Sri Ambati
2.6K views45 slides
How to use Artificial Intelligence with Python? Edureka by
How to use Artificial Intelligence with Python? EdurekaHow to use Artificial Intelligence with Python? Edureka
How to use Artificial Intelligence with Python? EdurekaEdureka!
591 views79 slides
AI on a Pi by
AI on a PiAI on a Pi
AI on a PiJulien SIMON
739 views26 slides
The Impact of Machine Learning on Digital Commerce by
The Impact of Machine Learning on Digital CommerceThe Impact of Machine Learning on Digital Commerce
The Impact of Machine Learning on Digital CommerceAllan MacGregor
200 views49 slides

Similar to Learning Machine Learning(20)

Reinforcement Learning In AI Powerpoint Presentation Slide Templates Complete... by SlideTeam
Reinforcement Learning In AI Powerpoint Presentation Slide Templates Complete...Reinforcement Learning In AI Powerpoint Presentation Slide Templates Complete...
Reinforcement Learning In AI Powerpoint Presentation Slide Templates Complete...
SlideTeam475 views
Machine Learning for Marketers by Mike King at The Inbounder New York by We Are Marketing
Machine Learning for Marketers by Mike King at The Inbounder New YorkMachine Learning for Marketers by Mike King at The Inbounder New York
Machine Learning for Marketers by Mike King at The Inbounder New York
We Are Marketing4.7K views
HR Analytics: Using Machine Learning to Predict Employee Turnover - Matt Danc... by Sri Ambati
HR Analytics: Using Machine Learning to Predict Employee Turnover - Matt Danc...HR Analytics: Using Machine Learning to Predict Employee Turnover - Matt Danc...
HR Analytics: Using Machine Learning to Predict Employee Turnover - Matt Danc...
Sri Ambati2.6K views
How to use Artificial Intelligence with Python? Edureka by Edureka!
How to use Artificial Intelligence with Python? EdurekaHow to use Artificial Intelligence with Python? Edureka
How to use Artificial Intelligence with Python? Edureka
Edureka!591 views
The Impact of Machine Learning on Digital Commerce by Allan MacGregor
The Impact of Machine Learning on Digital CommerceThe Impact of Machine Learning on Digital Commerce
The Impact of Machine Learning on Digital Commerce
Allan MacGregor200 views
The Future of AI (September 2019) by Julien SIMON
The Future of AI (September 2019)The Future of AI (September 2019)
The Future of AI (September 2019)
Julien SIMON1K views
Defend against adversarial AI using Adversarial Robustness Toolbox by Animesh Singh
Defend against adversarial AI using Adversarial Robustness Toolbox Defend against adversarial AI using Adversarial Robustness Toolbox
Defend against adversarial AI using Adversarial Robustness Toolbox
Animesh Singh371 views
Hacking Predictive Modeling - RoadSec 2018 by HJ van Veen
Hacking Predictive Modeling - RoadSec 2018Hacking Predictive Modeling - RoadSec 2018
Hacking Predictive Modeling - RoadSec 2018
HJ van Veen1.2K views
Myth vs Reality: Understanding AI/ML for QA Automation - w/ Jonathan Lipps by Applitools
Myth vs Reality: Understanding AI/ML for QA Automation - w/ Jonathan LippsMyth vs Reality: Understanding AI/ML for QA Automation - w/ Jonathan Lipps
Myth vs Reality: Understanding AI/ML for QA Automation - w/ Jonathan Lipps
Applitools1.2K views
Deep Learning in the Real World by Lukas Biewald
Deep Learning in the Real WorldDeep Learning in the Real World
Deep Learning in the Real World
Lukas Biewald2.1K views
Small talks about AI, and new opportunity in IC design industry by Mutai Lin
Small talks about AI, and new opportunity in IC design industrySmall talks about AI, and new opportunity in IC design industry
Small talks about AI, and new opportunity in IC design industry
Mutai Lin115 views
Artificial Intelligence Services - AAPNA Infotech by Aapna Infotech
Artificial Intelligence Services - AAPNA InfotechArtificial Intelligence Services - AAPNA Infotech
Artificial Intelligence Services - AAPNA Infotech
Aapna Infotech110 views
Learning About Machine Learning by Joel Lord
Learning About Machine LearningLearning About Machine Learning
Learning About Machine Learning
Joel Lord308 views
Bringing AI to Business Intelligence by Si Krishan
Bringing AI to Business IntelligenceBringing AI to Business Intelligence
Bringing AI to Business Intelligence
Si Krishan2.8K views
Artificial Intelligence PowerPoint Presentation Slide Template Complete Deck by SlideTeam
Artificial Intelligence PowerPoint Presentation Slide Template Complete DeckArtificial Intelligence PowerPoint Presentation Slide Template Complete Deck
Artificial Intelligence PowerPoint Presentation Slide Template Complete Deck
SlideTeam1.1K views
Artificial intelligence by Rohit Jain
Artificial intelligenceArtificial intelligence
Artificial intelligence
Rohit Jain501 views
Immoviz.io - real estate search engine by Du Phan
Immoviz.io - real estate search engineImmoviz.io - real estate search engine
Immoviz.io - real estate search engine
Du Phan671 views

More from Joel Lord

From Ceasar Cipher To Quantum Cryptography by
From Ceasar Cipher To Quantum CryptographyFrom Ceasar Cipher To Quantum Cryptography
From Ceasar Cipher To Quantum CryptographyJoel Lord
405 views185 slides
I Don't Care About Security (And Neither Should You) by
I Don't Care About Security (And Neither Should You)I Don't Care About Security (And Neither Should You)
I Don't Care About Security (And Neither Should You)Joel Lord
670 views131 slides
I Don't Care About Security (And Neither Should You) by
I Don't Care About Security (And Neither Should You)I Don't Care About Security (And Neither Should You)
I Don't Care About Security (And Neither Should You)Joel Lord
157 views128 slides
I Don't Care About Security (And Neither Should You) by
I Don't Care About Security (And Neither Should You)I Don't Care About Security (And Neither Should You)
I Don't Care About Security (And Neither Should You)Joel Lord
323 views121 slides
Forgot Password? Yes I Did! by
Forgot Password? Yes I Did!Forgot Password? Yes I Did!
Forgot Password? Yes I Did!Joel Lord
432 views61 slides
I Don't Care About Security (And Neither Should You) by
I Don't Care About Security (And Neither Should You)I Don't Care About Security (And Neither Should You)
I Don't Care About Security (And Neither Should You)Joel Lord
153 views126 slides

More from Joel Lord(20)

From Ceasar Cipher To Quantum Cryptography by Joel Lord
From Ceasar Cipher To Quantum CryptographyFrom Ceasar Cipher To Quantum Cryptography
From Ceasar Cipher To Quantum Cryptography
Joel Lord405 views
I Don't Care About Security (And Neither Should You) by Joel Lord
I Don't Care About Security (And Neither Should You)I Don't Care About Security (And Neither Should You)
I Don't Care About Security (And Neither Should You)
Joel Lord670 views
I Don't Care About Security (And Neither Should You) by Joel Lord
I Don't Care About Security (And Neither Should You)I Don't Care About Security (And Neither Should You)
I Don't Care About Security (And Neither Should You)
Joel Lord157 views
I Don't Care About Security (And Neither Should You) by Joel Lord
I Don't Care About Security (And Neither Should You)I Don't Care About Security (And Neither Should You)
I Don't Care About Security (And Neither Should You)
Joel Lord323 views
Forgot Password? Yes I Did! by Joel Lord
Forgot Password? Yes I Did!Forgot Password? Yes I Did!
Forgot Password? Yes I Did!
Joel Lord432 views
I Don't Care About Security (And Neither Should You) by Joel Lord
I Don't Care About Security (And Neither Should You)I Don't Care About Security (And Neither Should You)
I Don't Care About Security (And Neither Should You)
Joel Lord153 views
Mot de passe oublié? Absolument! by Joel Lord
Mot de passe oublié? Absolument!Mot de passe oublié? Absolument!
Mot de passe oublié? Absolument!
Joel Lord193 views
Asynchronicity: concurrency. A tale of by Joel Lord
Asynchronicity: concurrency. A tale ofAsynchronicity: concurrency. A tale of
Asynchronicity: concurrency. A tale of
Joel Lord283 views
Forgot Password? Yes I Did! by Joel Lord
Forgot Password? Yes I Did!Forgot Password? Yes I Did!
Forgot Password? Yes I Did!
Joel Lord295 views
WTH is a JWT by Joel Lord
WTH is a JWTWTH is a JWT
WTH is a JWT
Joel Lord909 views
I Don't Care About Security (And Neither Should You) by Joel Lord
I Don't Care About Security (And Neither Should You)I Don't Care About Security (And Neither Should You)
I Don't Care About Security (And Neither Should You)
Joel Lord125 views
Forgot Password? Yes I Did! by Joel Lord
Forgot Password? Yes I Did!Forgot Password? Yes I Did!
Forgot Password? Yes I Did!
Joel Lord115 views
I Don't Care About Security (And Neither Should You) by Joel Lord
I Don't Care About Security (And Neither Should You)I Don't Care About Security (And Neither Should You)
I Don't Care About Security (And Neither Should You)
Joel Lord196 views
WTH is a JWT by Joel Lord
WTH is a JWTWTH is a JWT
WTH is a JWT
Joel Lord311 views
Asynchonicity: concurrency. A tale of by Joel Lord
Asynchonicity: concurrency. A tale ofAsynchonicity: concurrency. A tale of
Asynchonicity: concurrency. A tale of
Joel Lord360 views
I Don't Care About Security by Joel Lord
I Don't Care About Security I Don't Care About Security
I Don't Care About Security
Joel Lord247 views
I Don't Care About Security (And Neither Should You) by Joel Lord
I Don't Care About Security (And Neither Should You)I Don't Care About Security (And Neither Should You)
I Don't Care About Security (And Neither Should You)
Joel Lord209 views
I Don't Care About Security (And Neither Should You) by Joel Lord
I Don't Care About Security (And Neither Should You)I Don't Care About Security (And Neither Should You)
I Don't Care About Security (And Neither Should You)
Joel Lord233 views
Secure your SPA with Auth0 by Joel Lord
Secure your SPA with Auth0Secure your SPA with Auth0
Secure your SPA with Auth0
Joel Lord341 views
Learning Machine Learning by Joel Lord
Learning Machine LearningLearning Machine Learning
Learning Machine Learning
Joel Lord241 views

Recently uploaded

The Dark Web : Hidden Services by
The Dark Web : Hidden ServicesThe Dark Web : Hidden Services
The Dark Web : Hidden ServicesAnshu Singh
22 views24 slides
cis5-Project-11a-Harry Lai by
cis5-Project-11a-Harry Laicis5-Project-11a-Harry Lai
cis5-Project-11a-Harry Laiharrylai126
9 views11 slides
40th TWNIC Open Policy Meeting: A quick look at QUIC by
40th TWNIC Open Policy Meeting: A quick look at QUIC40th TWNIC Open Policy Meeting: A quick look at QUIC
40th TWNIC Open Policy Meeting: A quick look at QUICAPNIC
109 views20 slides
ARNAB12.pdf by
ARNAB12.pdfARNAB12.pdf
ARNAB12.pdfArnabChakraborty499766
5 views83 slides
The Boys – Season 4 by
The Boys – Season 4The Boys – Season 4
The Boys – Season 4phamthebach2210
7 views2 slides
Cracking the Code Decoding Leased Line Quotes for Connectivity Excellence.pptx by
Cracking the Code Decoding Leased Line Quotes for Connectivity Excellence.pptxCracking the Code Decoding Leased Line Quotes for Connectivity Excellence.pptx
Cracking the Code Decoding Leased Line Quotes for Connectivity Excellence.pptxLeasedLinesQuote
5 views8 slides

Recently uploaded(15)

The Dark Web : Hidden Services by Anshu Singh
The Dark Web : Hidden ServicesThe Dark Web : Hidden Services
The Dark Web : Hidden Services
Anshu Singh22 views
cis5-Project-11a-Harry Lai by harrylai126
cis5-Project-11a-Harry Laicis5-Project-11a-Harry Lai
cis5-Project-11a-Harry Lai
harrylai1269 views
40th TWNIC Open Policy Meeting: A quick look at QUIC by APNIC
40th TWNIC Open Policy Meeting: A quick look at QUIC40th TWNIC Open Policy Meeting: A quick look at QUIC
40th TWNIC Open Policy Meeting: A quick look at QUIC
APNIC109 views
Cracking the Code Decoding Leased Line Quotes for Connectivity Excellence.pptx by LeasedLinesQuote
Cracking the Code Decoding Leased Line Quotes for Connectivity Excellence.pptxCracking the Code Decoding Leased Line Quotes for Connectivity Excellence.pptx
Cracking the Code Decoding Leased Line Quotes for Connectivity Excellence.pptx
Liberando a produccion con confidencia.pdf by Andres Almiray
Liberando a produccion con confidencia.pdfLiberando a produccion con confidencia.pdf
Liberando a produccion con confidencia.pdf
Andres Almiray6 views
40th TWNIC OPM: On LEOs (Low Earth Orbits) and Starlink Download by APNIC
40th TWNIC OPM: On LEOs (Low Earth Orbits) and Starlink Download40th TWNIC OPM: On LEOs (Low Earth Orbits) and Starlink Download
40th TWNIC OPM: On LEOs (Low Earth Orbits) and Starlink Download
APNIC112 views
ATPMOUSE_융합2조.pptx by kts120898
ATPMOUSE_융합2조.pptxATPMOUSE_융합2조.pptx
ATPMOUSE_융합2조.pptx
kts12089835 views
40th TWNIC Open Policy Meeting: APNIC PDP update by APNIC
40th TWNIC Open Policy Meeting: APNIC PDP update40th TWNIC Open Policy Meeting: APNIC PDP update
40th TWNIC Open Policy Meeting: APNIC PDP update
APNIC106 views
WITS Deck by W.I.T.S.
WITS DeckWITS Deck
WITS Deck
W.I.T.S.36 views
Penetration Testing for Cybersecurity Professionals by 211 Check
Penetration Testing for Cybersecurity ProfessionalsPenetration Testing for Cybersecurity Professionals
Penetration Testing for Cybersecurity Professionals
211 Check49 views

Learning Machine Learning