From chatbots to your home thermostat, it seems like machine learning algorithms are everywhere nowadays. How about understanding how this works now? In this talk, you will learn about the basics of machine learning through various basic examples, without the need for a PhD or deep knowledge of assembly. At the end of this talk, you will know what the Naive Bayes classifiers, sentiment analysis and basic genetic algorithms are and how they work. You will also see how to create your own implementations in Javascript.
3. @joel__lord
#phpworld
Our Agenda for todayโฆ
โข AI vs ML
โข Deep Learning &
Neural Networks
โข Supervised vs
unsupervised
โข Naรฏve Bayes Classifier
โข Genetic Algorithms
18. @joel__lord
#phpworld
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
34. @joel__lord
#phpworld
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
35. @joel__lord
#phpworld
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
40. @joel__lord
#phpworld
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();
41. @joel__lord
#phpworld
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
42. @joel__lord
#phpworld
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