SlideShare a Scribd company logo
1 of 75
Download to read offline
IDSTEM Workshop:
Basics of Coding and Machine Learning
March 12th, 2022
2:30 – 3:00 pm
Miriam Hewlett
Outline
• Introduction to Machine Learning
• Python Tutorial
• MATLAB Demo (time permitting)
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine Learning vs Traditional Programming
“Machine learning is a field of study that gives computers the ability to
learn without being explicitly programmed” – A. Samuel 1959
IDSTEM Workshop: Basics of Coding and Machine Learning
Traditional
Programming
Machine Learning vs Traditional Programming
“Machine learning is a field of study that gives computers the ability to
learn without being explicitly programmed” – A. Samuel 1959
IDSTEM Workshop: Basics of Coding and Machine Learning
Traditional
Programming
Machine Learning vs Traditional Programming
“Machine learning is a field of study that gives computers the ability to
learn without being explicitly programmed” – A. Samuel 1959
Data
IDSTEM Workshop: Basics of Coding and Machine Learning
Traditional
Programming
Machine Learning vs Traditional Programming
“Machine learning is a field of study that gives computers the ability to
learn without being explicitly programmed” – A. Samuel 1959
Data
Model
IDSTEM Workshop: Basics of Coding and Machine Learning
Traditional
Programming
Machine Learning vs Traditional Programming
“Machine learning is a field of study that gives computers the ability to
learn without being explicitly programmed” – A. Samuel 1959
Data
Model
Outputs
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine
Learning
Machine Learning vs Traditional Programming
“Machine learning is a field of study that gives computers the ability to
learn without being explicitly programmed” – A. Samuel 1959
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine
Learning
Machine Learning vs Traditional Programming
“Machine learning is a field of study that gives computers the ability to
learn without being explicitly programmed” – A. Samuel 1959
Data
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine
Learning
Machine Learning vs Traditional Programming
“Machine learning is a field of study that gives computers the ability to
learn without being explicitly programmed” – A. Samuel 1959
Data
Outputs
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine
Learning
Machine Learning vs Traditional Programming
“Machine learning is a field of study that gives computers the ability to
learn without being explicitly programmed” – A. Samuel 1959
Data
Outputs
Model
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine
Learning
Machine Learning vs Traditional Programming
“Machine learning is a field of study that gives computers the ability to
learn without being explicitly programmed” – A. Samuel 1959
Data
Outputs
Model
New Data
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine
Learning
Machine Learning vs Traditional Programming
“Machine learning is a field of study that gives computers the ability to
learn without being explicitly programmed” – A. Samuel 1959
Data
Outputs
Model
New Data
Unknown
Outputs
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine
Learning
Machine Learning vs Traditional Programming
“Machine learning is a field of study that gives computers the ability to
learn without being explicitly programmed” – A. Samuel 1959
Data
Outputs
Model
*supervised learning
New Data
Unknown
Outputs
IDSTEM Workshop: Basics of Coding and Machine Learning
Why use Machine Learning?
IDSTEM Workshop: Basics of Coding and Machine Learning
Why use Machine Learning?
IDSTEM Workshop: Basics of Coding and Machine Learning
Emotion Recognition
JAFFE
Dataset
Why use Machine Learning?
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
Why use Machine Learning?
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
Khashman, A. (2009) Applications of an
emotional neural network to facial recognition.
Neural Comput & Applic 18: 309-320.
Different images may have
different pose, contrast,
lighting conditions, etc.
Why use Machine Learning?
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset Traditional
Programming
Data Model
Outputs
Why use Machine Learning?
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset Traditional
Programming
Data Model
Outputs
?
Why use Machine Learning?
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset Traditional
Programming
Data Model
Outputs
?
Machine Learning is useful for modelling
complex relationships with no known
governing equation
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
4. Apply learning algorithm to
training data to fit model
5. Evaluate trained model on
validation data with known
outputs
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine Learning: Basic Steps
1. Define the problem
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine Learning: Basic Steps
1. Define the problem
IDSTEM Workshop: Basics of Coding and Machine Learning
Supervised Learning
Machine Learning: Basic Steps
1. Define the problem
IDSTEM Workshop: Basics of Coding and Machine Learning
Supervised Learning
Classification
(discrete output)
Machine Learning: Basic Steps
1. Define the problem
IDSTEM Workshop: Basics of Coding and Machine Learning
Supervised Learning
Classification
(discrete output)
Regression
(continuous)
Machine Learning: Basic Steps
1. Define the problem
IDSTEM Workshop: Basics of Coding and Machine Learning
Supervised Learning
Classification
(discrete output)
Regression
(continuous)
Inputs
Machine Learning: Basic Steps
1. Define the problem
IDSTEM Workshop: Basics of Coding and Machine Learning
Supervised Learning
Classification
(discrete output)
Regression
(continuous)
Inputs
Class 1
Class 2
Machine Learning: Basic Steps
1. Define the problem
IDSTEM Workshop: Basics of Coding and Machine Learning
Supervised Learning
Classification
(discrete output)
Regression
(continuous)
Inputs
Class 1
Class 2
Class 3
Machine Learning: Basic Steps
1. Define the problem
IDSTEM Workshop: Basics of Coding and Machine Learning
Supervised Learning
Classification
(discrete output)
Regression
(continuous)
Inputs
Class 1
Class 2
Class 3
Inputs
Machine Learning: Basic Steps
1. Define the problem
IDSTEM Workshop: Basics of Coding and Machine Learning
Supervised Learning
Classification
(discrete output)
Regression
(continuous)
Inputs
Class 1
Class 2
Class 3
Inputs
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Emotion Recognition
JAFFE
Dataset
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
Data
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
Data
Training Data
Validation Data
Testing Data
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
Class
Neutral
Fear
Happy
Angry
Sad
Surprised
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
Class
Neutral
Fear
Happy
Angry
Sad
Surprised
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
Representation
1
0
0
0
0
0
Class
Neutral
Fear
Happy
Angry
Sad
Surprised
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
Representation
0
0
0
0
1
0
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
1 2 3 8 4 7 0 2
1 3 5 0 5 1 2 6
9 3 6 2 1 4 6 9
5 3 7 3 0 6 4 2
1 4 5 7 9 2 6 3
2 4 3 8 8 2 6 9
6 3 9 3 6 9 2 7
9 4 6 8 0 2 5 2
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
1 2 3 8 4 7 0 2
1 3 5 0 5 1 2 6
9 3 6 2 1 4 6 9
5 3 7 3 0 6 4 2
1 4 5 7 9 2 6 3
2 4 3 8 8 2 6 9
6 3 9 3 6 9 2 7
9 4 6 8 0 2 5 2
1
1
9
5
1
2
6
9
2
3
3
3
…
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
Feature
Extraction
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
Feature
Extraction
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
Feature
Extraction
Right
eyebrow
(middle)
Left eye
(inner)
Mouth end (right)
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
Feature
Extraction
Right
eyebrow
(middle)
Left eye
(inner)
Mouth end (right)
x1
y1
x2
y2
x3
y3
…
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
IDSTEM Workshop: Basics of Coding and Machine Learning
Neutral Sad Surprised
Emotion Recognition
JAFFE
Dataset
Feature
Extraction
Right
eyebrow
(middle)
Left eye
(inner)
Mouth end (right)
x1
y1
x2
y2
x3
y3
…
*dimensionality reduction
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
IDSTEM Workshop: Basics of Coding and Machine Learning
Neural
Networks
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
IDSTEM Workshop: Basics of Coding and Machine Learning
Linear
Regression
Neural
Networks
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
IDSTEM Workshop: Basics of Coding and Machine Learning
Decision
Trees
Linear
Regression
Neural
Networks
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
IDSTEM Workshop: Basics of Coding and Machine Learning
Decision
Trees
Nearest
Neighbor
Linear
Regression
Neural
Networks
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
IDSTEM Workshop: Basics of Coding and Machine Learning
Decision
Trees
Nearest
Neighbor
Linear
Regression
Neural
Networks
Support Vector
Machines (SVM)
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
IDSTEM Workshop: Basics of Coding and Machine Learning
Input Layer
(features)
Output Layer
(labels)
Hidden
Layer
Neural
Networks
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
IDSTEM Workshop: Basics of Coding and Machine Learning
Input Layer
(features)
Output Layer
(labels)
Hidden
Layer
x1
x0
y
y = f(w0 + w1x1 + w2x2)
Neural
Networks
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
IDSTEM Workshop: Basics of Coding and Machine Learning
Input Layer
(features)
Output Layer
(labels)
Hidden
Layer
x1
x0
y
y = f(w0 + w1x1 + w2x2)
learned
weights
Neural
Networks
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
IDSTEM Workshop: Basics of Coding and Machine Learning
Input Layer
(features)
Output Layer
(labels)
Hidden
Layer
x1
x0
y
y = f(w0 + w1x1 + w2x2)
activation function
(chosen parameter)
Neural
Networks
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
IDSTEM Workshop: Basics of Coding and Machine Learning
Learning
Algorithm
Training Data
Model Class
Model Weights
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
IDSTEM Workshop: Basics of Coding and Machine Learning
Learning
Algorithm
Training Data
Model Class
Model Weights
W’ = argminW
1
n
!
i=1
n
Li $
yi(W),yi
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
IDSTEM Workshop: Basics of Coding and Machine Learning
Learning
Algorithm
Training Data
Model Class
Model Weights
W’ = argminW
1
n
!
i=1
n
Li $
yi(W),yi
weights
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
IDSTEM Workshop: Basics of Coding and Machine Learning
Learning
Algorithm
Training Data
Model Class
Model Weights
W’ = argminW
1
n
!
i=1
n
Li $
yi(W),yi
model
prediction
labels
weights
loss function
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
IDSTEM Workshop: Basics of Coding and Machine Learning
Learning
Algorithm
Training Data
Model Class
Model Weights
W’ = argminW
1
n
!
i=1
n
Li $
yi(W),yi
model
prediction
labels
weights
loss function
*regularization?
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
4. Apply learning algorithm to
training data to fit model
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
4. Apply learning algorithm to
training data to fit model
IDSTEM Workshop: Basics of Coding and Machine Learning
optimize weights
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
4. Apply learning algorithm to
training data to fit model
5. Evaluate trained model on
validation data with known
outputs
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
4. Apply learning algorithm to
training data to fit model
5. Evaluate trained model on
validation data with known
outputs
IDSTEM Workshop: Basics of Coding and Machine Learning
An estimate of how well our
model will generalize to new data
Training data
Validation data
Model
overfitting
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
4. Apply learning algorithm to
training data to fit model
5. Evaluate trained model on
validation data with known
outputs
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
4. Apply learning algorithm to
training data to fit model
5. Evaluate trained model on
validation data with known
outputs
IDSTEM Workshop: Basics of Coding and Machine Learning
Repeat with different model
classes, parameters, etc.
Machine Learning: Basic Steps
1. Define the problem
2. Curate and label the data
3. Select model class,
learning algorithm, loss
function, and other
parameters
4. Apply learning algorithm to
training data to fit model
5. Evaluate trained model on
validation data with known
outputs
IDSTEM Workshop: Basics of Coding and Machine Learning
Repeat with different model
classes, parameters, etc.
Evaluate best performing
model on testing data
Machine Learning Limitations
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine Learning Limitations
• Large data, computational requirements
• Can produce unexpected results when
evaluated on data under-represented in
the training set
IDSTEM Workshop: Basics of Coding and Machine Learning
Machine Learning Limitations
• Large data, computational requirements
• Can produce unexpected results when
evaluated on data under-represented in
the training set
IDSTEM Workshop: Basics of Coding and Machine Learning
Questions ?
Tutorial
• Neural networks in Python using Google Colab
• (time-permitting) MATLAB Demo

More Related Content

Similar to IDSTEM ML Basics: Coding, ML Intro & Demos

Artificial Intelligence (AI) Interview Questions and Answers | Edureka
Artificial Intelligence (AI) Interview Questions and Answers | EdurekaArtificial Intelligence (AI) Interview Questions and Answers | Edureka
Artificial Intelligence (AI) Interview Questions and Answers | EdurekaEdureka!
 
Machine Learning Ch 1.ppt
Machine Learning Ch 1.pptMachine Learning Ch 1.ppt
Machine Learning Ch 1.pptARVIND SARDAR
 
Artificial intelligence slides beginners
Artificial intelligence slides beginners Artificial intelligence slides beginners
Artificial intelligence slides beginners Antonio Fernandes
 
Artificial Intelligence with Python | Edureka
Artificial Intelligence with Python | EdurekaArtificial Intelligence with Python | Edureka
Artificial Intelligence with Python | EdurekaEdureka!
 
AI INTRODUCTION.pptx,INFORMATION TECHNOLOGY
AI INTRODUCTION.pptx,INFORMATION TECHNOLOGYAI INTRODUCTION.pptx,INFORMATION TECHNOLOGY
AI INTRODUCTION.pptx,INFORMATION TECHNOLOGYsantoshverma90
 
Machine learning_ Replicating Human Brain
Machine learning_ Replicating Human BrainMachine learning_ Replicating Human Brain
Machine learning_ Replicating Human BrainNishant Jain
 
How to use Artificial Intelligence with Python? Edureka
How to use Artificial Intelligence with Python? EdurekaHow to use Artificial Intelligence with Python? Edureka
How to use Artificial Intelligence with Python? EdurekaEdureka!
 
Machine learning || Introduction || Main Components || Examples || Techniques
Machine learning || Introduction || Main Components || Examples || TechniquesMachine learning || Introduction || Main Components || Examples || Techniques
Machine learning || Introduction || Main Components || Examples || TechniquesSamra Shahzadi
 
Teaching AI about human knowledge
Teaching AI about human knowledgeTeaching AI about human knowledge
Teaching AI about human knowledgeInes Montani
 
Deep Learning - Hype, Reality and Applications in Manufacturing
Deep Learning - Hype, Reality and Applications in ManufacturingDeep Learning - Hype, Reality and Applications in Manufacturing
Deep Learning - Hype, Reality and Applications in ManufacturingAdam Cook
 
Meetup 29042015
Meetup 29042015Meetup 29042015
Meetup 29042015lbishal
 
Introduction AI ML& Mathematicals of ML.pdf
Introduction AI ML& Mathematicals of ML.pdfIntroduction AI ML& Mathematicals of ML.pdf
Introduction AI ML& Mathematicals of ML.pdfGandhiMathy6
 
1 machine learning demystified
1 machine learning demystified1 machine learning demystified
1 machine learning demystifiedDr Nisha Arora
 
Lect 7 intro to M.L..pdf
Lect 7 intro to M.L..pdfLect 7 intro to M.L..pdf
Lect 7 intro to M.L..pdfHassanElalfy4
 
Machine Learning Introduction
Machine Learning Introduction Machine Learning Introduction
Machine Learning Introduction KritimPrasadKafle
 
Hala GPT - Samer Desouky.pdf
Hala GPT - Samer Desouky.pdfHala GPT - Samer Desouky.pdf
Hala GPT - Samer Desouky.pdfSamer Desouky
 
ppt on machine learning to deep learning (1).pptx
ppt on machine learning to deep learning (1).pptxppt on machine learning to deep learning (1).pptx
ppt on machine learning to deep learning (1).pptxAnweshaGarima
 
Unsupervised Feature Learning
Unsupervised Feature LearningUnsupervised Feature Learning
Unsupervised Feature LearningAmgad Muhammad
 

Similar to IDSTEM ML Basics: Coding, ML Intro & Demos (20)

Artificial Intelligence (AI) Interview Questions and Answers | Edureka
Artificial Intelligence (AI) Interview Questions and Answers | EdurekaArtificial Intelligence (AI) Interview Questions and Answers | Edureka
Artificial Intelligence (AI) Interview Questions and Answers | Edureka
 
Machine Learning Ch 1.ppt
Machine Learning Ch 1.pptMachine Learning Ch 1.ppt
Machine Learning Ch 1.ppt
 
Artificial intelligence slides beginners
Artificial intelligence slides beginners Artificial intelligence slides beginners
Artificial intelligence slides beginners
 
Artificial Intelligence with Python | Edureka
Artificial Intelligence with Python | EdurekaArtificial Intelligence with Python | Edureka
Artificial Intelligence with Python | Edureka
 
AI INTRODUCTION.pptx,INFORMATION TECHNOLOGY
AI INTRODUCTION.pptx,INFORMATION TECHNOLOGYAI INTRODUCTION.pptx,INFORMATION TECHNOLOGY
AI INTRODUCTION.pptx,INFORMATION TECHNOLOGY
 
Machine learning_ Replicating Human Brain
Machine learning_ Replicating Human BrainMachine learning_ Replicating Human Brain
Machine learning_ Replicating Human Brain
 
How to use Artificial Intelligence with Python? Edureka
How to use Artificial Intelligence with Python? EdurekaHow to use Artificial Intelligence with Python? Edureka
How to use Artificial Intelligence with Python? Edureka
 
ML basics.pptx
ML basics.pptxML basics.pptx
ML basics.pptx
 
Machine learning || Introduction || Main Components || Examples || Techniques
Machine learning || Introduction || Main Components || Examples || TechniquesMachine learning || Introduction || Main Components || Examples || Techniques
Machine learning || Introduction || Main Components || Examples || Techniques
 
Teaching AI about human knowledge
Teaching AI about human knowledgeTeaching AI about human knowledge
Teaching AI about human knowledge
 
Deep Learning - Hype, Reality and Applications in Manufacturing
Deep Learning - Hype, Reality and Applications in ManufacturingDeep Learning - Hype, Reality and Applications in Manufacturing
Deep Learning - Hype, Reality and Applications in Manufacturing
 
Meetup 29042015
Meetup 29042015Meetup 29042015
Meetup 29042015
 
Introduction AI ML& Mathematicals of ML.pdf
Introduction AI ML& Mathematicals of ML.pdfIntroduction AI ML& Mathematicals of ML.pdf
Introduction AI ML& Mathematicals of ML.pdf
 
1 machine learning demystified
1 machine learning demystified1 machine learning demystified
1 machine learning demystified
 
Lect 7 intro to M.L..pdf
Lect 7 intro to M.L..pdfLect 7 intro to M.L..pdf
Lect 7 intro to M.L..pdf
 
Machine Learning Introduction
Machine Learning Introduction Machine Learning Introduction
Machine Learning Introduction
 
Hala GPT - Samer Desouky.pdf
Hala GPT - Samer Desouky.pdfHala GPT - Samer Desouky.pdf
Hala GPT - Samer Desouky.pdf
 
ppt on machine learning to deep learning (1).pptx
ppt on machine learning to deep learning (1).pptxppt on machine learning to deep learning (1).pptx
ppt on machine learning to deep learning (1).pptx
 
Machine learning
Machine learningMachine learning
Machine learning
 
Unsupervised Feature Learning
Unsupervised Feature LearningUnsupervised Feature Learning
Unsupervised Feature Learning
 

Recently uploaded

Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTSérgio Sacani
 
Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Nistarini College, Purulia (W.B) India
 
Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real timeSatoshi NAKAHIRA
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxgindu3009
 
Cultivation of KODO MILLET . made by Ghanshyam pptx
Cultivation of KODO MILLET . made by Ghanshyam pptxCultivation of KODO MILLET . made by Ghanshyam pptx
Cultivation of KODO MILLET . made by Ghanshyam pptxpradhanghanshyam7136
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Patrick Diehl
 
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡anilsa9823
 
Chemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfChemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfSumit Kumar yadav
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bSérgio Sacani
 
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |aasikanpl
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...Sérgio Sacani
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptxRajatChauhan518211
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSarthak Sekhar Mondal
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfSumit Kumar yadav
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...ssifa0344
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptxanandsmhk
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsAArockiyaNisha
 

Recently uploaded (20)

CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOST
 
Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...
 
Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real time
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
 
Cultivation of KODO MILLET . made by Ghanshyam pptx
Cultivation of KODO MILLET . made by Ghanshyam pptxCultivation of KODO MILLET . made by Ghanshyam pptx
Cultivation of KODO MILLET . made by Ghanshyam pptx
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?
 
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
 
Engler and Prantl system of classification in plant taxonomy
Engler and Prantl system of classification in plant taxonomyEngler and Prantl system of classification in plant taxonomy
Engler and Prantl system of classification in plant taxonomy
 
Chemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfChemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdf
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
 
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
 
The Philosophy of Science
The Philosophy of ScienceThe Philosophy of Science
The Philosophy of Science
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptx
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based Nanomaterials
 

IDSTEM ML Basics: Coding, ML Intro & Demos

  • 1. IDSTEM Workshop: Basics of Coding and Machine Learning March 12th, 2022 2:30 – 3:00 pm Miriam Hewlett
  • 2. Outline • Introduction to Machine Learning • Python Tutorial • MATLAB Demo (time permitting) IDSTEM Workshop: Basics of Coding and Machine Learning
  • 3. Machine Learning vs Traditional Programming “Machine learning is a field of study that gives computers the ability to learn without being explicitly programmed” – A. Samuel 1959 IDSTEM Workshop: Basics of Coding and Machine Learning
  • 4. Traditional Programming Machine Learning vs Traditional Programming “Machine learning is a field of study that gives computers the ability to learn without being explicitly programmed” – A. Samuel 1959 IDSTEM Workshop: Basics of Coding and Machine Learning
  • 5. Traditional Programming Machine Learning vs Traditional Programming “Machine learning is a field of study that gives computers the ability to learn without being explicitly programmed” – A. Samuel 1959 Data IDSTEM Workshop: Basics of Coding and Machine Learning
  • 6. Traditional Programming Machine Learning vs Traditional Programming “Machine learning is a field of study that gives computers the ability to learn without being explicitly programmed” – A. Samuel 1959 Data Model IDSTEM Workshop: Basics of Coding and Machine Learning
  • 7. Traditional Programming Machine Learning vs Traditional Programming “Machine learning is a field of study that gives computers the ability to learn without being explicitly programmed” – A. Samuel 1959 Data Model Outputs IDSTEM Workshop: Basics of Coding and Machine Learning
  • 8. Machine Learning Machine Learning vs Traditional Programming “Machine learning is a field of study that gives computers the ability to learn without being explicitly programmed” – A. Samuel 1959 IDSTEM Workshop: Basics of Coding and Machine Learning
  • 9. Machine Learning Machine Learning vs Traditional Programming “Machine learning is a field of study that gives computers the ability to learn without being explicitly programmed” – A. Samuel 1959 Data IDSTEM Workshop: Basics of Coding and Machine Learning
  • 10. Machine Learning Machine Learning vs Traditional Programming “Machine learning is a field of study that gives computers the ability to learn without being explicitly programmed” – A. Samuel 1959 Data Outputs IDSTEM Workshop: Basics of Coding and Machine Learning
  • 11. Machine Learning Machine Learning vs Traditional Programming “Machine learning is a field of study that gives computers the ability to learn without being explicitly programmed” – A. Samuel 1959 Data Outputs Model IDSTEM Workshop: Basics of Coding and Machine Learning
  • 12. Machine Learning Machine Learning vs Traditional Programming “Machine learning is a field of study that gives computers the ability to learn without being explicitly programmed” – A. Samuel 1959 Data Outputs Model New Data IDSTEM Workshop: Basics of Coding and Machine Learning
  • 13. Machine Learning Machine Learning vs Traditional Programming “Machine learning is a field of study that gives computers the ability to learn without being explicitly programmed” – A. Samuel 1959 Data Outputs Model New Data Unknown Outputs IDSTEM Workshop: Basics of Coding and Machine Learning
  • 14. Machine Learning Machine Learning vs Traditional Programming “Machine learning is a field of study that gives computers the ability to learn without being explicitly programmed” – A. Samuel 1959 Data Outputs Model *supervised learning New Data Unknown Outputs IDSTEM Workshop: Basics of Coding and Machine Learning
  • 15. Why use Machine Learning? IDSTEM Workshop: Basics of Coding and Machine Learning
  • 16. Why use Machine Learning? IDSTEM Workshop: Basics of Coding and Machine Learning Emotion Recognition JAFFE Dataset
  • 17. Why use Machine Learning? IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset
  • 18. Why use Machine Learning? IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset Khashman, A. (2009) Applications of an emotional neural network to facial recognition. Neural Comput & Applic 18: 309-320. Different images may have different pose, contrast, lighting conditions, etc.
  • 19. Why use Machine Learning? IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset Traditional Programming Data Model Outputs
  • 20. Why use Machine Learning? IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset Traditional Programming Data Model Outputs ?
  • 21. Why use Machine Learning? IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset Traditional Programming Data Model Outputs ? Machine Learning is useful for modelling complex relationships with no known governing equation
  • 22. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters 4. Apply learning algorithm to training data to fit model 5. Evaluate trained model on validation data with known outputs IDSTEM Workshop: Basics of Coding and Machine Learning
  • 23. Machine Learning: Basic Steps 1. Define the problem IDSTEM Workshop: Basics of Coding and Machine Learning
  • 24. Machine Learning: Basic Steps 1. Define the problem IDSTEM Workshop: Basics of Coding and Machine Learning Supervised Learning
  • 25. Machine Learning: Basic Steps 1. Define the problem IDSTEM Workshop: Basics of Coding and Machine Learning Supervised Learning Classification (discrete output)
  • 26. Machine Learning: Basic Steps 1. Define the problem IDSTEM Workshop: Basics of Coding and Machine Learning Supervised Learning Classification (discrete output) Regression (continuous)
  • 27. Machine Learning: Basic Steps 1. Define the problem IDSTEM Workshop: Basics of Coding and Machine Learning Supervised Learning Classification (discrete output) Regression (continuous) Inputs
  • 28. Machine Learning: Basic Steps 1. Define the problem IDSTEM Workshop: Basics of Coding and Machine Learning Supervised Learning Classification (discrete output) Regression (continuous) Inputs Class 1 Class 2
  • 29. Machine Learning: Basic Steps 1. Define the problem IDSTEM Workshop: Basics of Coding and Machine Learning Supervised Learning Classification (discrete output) Regression (continuous) Inputs Class 1 Class 2 Class 3
  • 30. Machine Learning: Basic Steps 1. Define the problem IDSTEM Workshop: Basics of Coding and Machine Learning Supervised Learning Classification (discrete output) Regression (continuous) Inputs Class 1 Class 2 Class 3 Inputs
  • 31. Machine Learning: Basic Steps 1. Define the problem IDSTEM Workshop: Basics of Coding and Machine Learning Supervised Learning Classification (discrete output) Regression (continuous) Inputs Class 1 Class 2 Class 3 Inputs
  • 32. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning
  • 33. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Emotion Recognition JAFFE Dataset
  • 34. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset
  • 35. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset Data
  • 36. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset Data Training Data Validation Data Testing Data
  • 37. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset
  • 38. Class Neutral Fear Happy Angry Sad Surprised Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset
  • 39. Class Neutral Fear Happy Angry Sad Surprised Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset Representation 1 0 0 0 0 0
  • 40. Class Neutral Fear Happy Angry Sad Surprised Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset Representation 0 0 0 0 1 0
  • 41. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset
  • 42. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset 1 2 3 8 4 7 0 2 1 3 5 0 5 1 2 6 9 3 6 2 1 4 6 9 5 3 7 3 0 6 4 2 1 4 5 7 9 2 6 3 2 4 3 8 8 2 6 9 6 3 9 3 6 9 2 7 9 4 6 8 0 2 5 2
  • 43. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset 1 2 3 8 4 7 0 2 1 3 5 0 5 1 2 6 9 3 6 2 1 4 6 9 5 3 7 3 0 6 4 2 1 4 5 7 9 2 6 3 2 4 3 8 8 2 6 9 6 3 9 3 6 9 2 7 9 4 6 8 0 2 5 2 1 1 9 5 1 2 6 9 2 3 3 3 …
  • 44. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset
  • 45. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset Feature Extraction
  • 46. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset Feature Extraction
  • 47. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset Feature Extraction Right eyebrow (middle) Left eye (inner) Mouth end (right)
  • 48. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset Feature Extraction Right eyebrow (middle) Left eye (inner) Mouth end (right) x1 y1 x2 y2 x3 y3 …
  • 49. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data IDSTEM Workshop: Basics of Coding and Machine Learning Neutral Sad Surprised Emotion Recognition JAFFE Dataset Feature Extraction Right eyebrow (middle) Left eye (inner) Mouth end (right) x1 y1 x2 y2 x3 y3 … *dimensionality reduction
  • 50. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters IDSTEM Workshop: Basics of Coding and Machine Learning
  • 51. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters IDSTEM Workshop: Basics of Coding and Machine Learning Neural Networks
  • 52. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters IDSTEM Workshop: Basics of Coding and Machine Learning Linear Regression Neural Networks
  • 53. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters IDSTEM Workshop: Basics of Coding and Machine Learning Decision Trees Linear Regression Neural Networks
  • 54. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters IDSTEM Workshop: Basics of Coding and Machine Learning Decision Trees Nearest Neighbor Linear Regression Neural Networks
  • 55. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters IDSTEM Workshop: Basics of Coding and Machine Learning Decision Trees Nearest Neighbor Linear Regression Neural Networks Support Vector Machines (SVM)
  • 56. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters IDSTEM Workshop: Basics of Coding and Machine Learning Input Layer (features) Output Layer (labels) Hidden Layer Neural Networks
  • 57. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters IDSTEM Workshop: Basics of Coding and Machine Learning Input Layer (features) Output Layer (labels) Hidden Layer x1 x0 y y = f(w0 + w1x1 + w2x2) Neural Networks
  • 58. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters IDSTEM Workshop: Basics of Coding and Machine Learning Input Layer (features) Output Layer (labels) Hidden Layer x1 x0 y y = f(w0 + w1x1 + w2x2) learned weights Neural Networks
  • 59. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters IDSTEM Workshop: Basics of Coding and Machine Learning Input Layer (features) Output Layer (labels) Hidden Layer x1 x0 y y = f(w0 + w1x1 + w2x2) activation function (chosen parameter) Neural Networks
  • 60. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters IDSTEM Workshop: Basics of Coding and Machine Learning Learning Algorithm Training Data Model Class Model Weights
  • 61. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters IDSTEM Workshop: Basics of Coding and Machine Learning Learning Algorithm Training Data Model Class Model Weights W’ = argminW 1 n ! i=1 n Li $ yi(W),yi
  • 62. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters IDSTEM Workshop: Basics of Coding and Machine Learning Learning Algorithm Training Data Model Class Model Weights W’ = argminW 1 n ! i=1 n Li $ yi(W),yi weights
  • 63. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters IDSTEM Workshop: Basics of Coding and Machine Learning Learning Algorithm Training Data Model Class Model Weights W’ = argminW 1 n ! i=1 n Li $ yi(W),yi model prediction labels weights loss function
  • 64. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters IDSTEM Workshop: Basics of Coding and Machine Learning Learning Algorithm Training Data Model Class Model Weights W’ = argminW 1 n ! i=1 n Li $ yi(W),yi model prediction labels weights loss function *regularization?
  • 65. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters 4. Apply learning algorithm to training data to fit model IDSTEM Workshop: Basics of Coding and Machine Learning
  • 66. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters 4. Apply learning algorithm to training data to fit model IDSTEM Workshop: Basics of Coding and Machine Learning optimize weights
  • 67. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters 4. Apply learning algorithm to training data to fit model 5. Evaluate trained model on validation data with known outputs IDSTEM Workshop: Basics of Coding and Machine Learning
  • 68. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters 4. Apply learning algorithm to training data to fit model 5. Evaluate trained model on validation data with known outputs IDSTEM Workshop: Basics of Coding and Machine Learning An estimate of how well our model will generalize to new data Training data Validation data Model overfitting
  • 69. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters 4. Apply learning algorithm to training data to fit model 5. Evaluate trained model on validation data with known outputs IDSTEM Workshop: Basics of Coding and Machine Learning
  • 70. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters 4. Apply learning algorithm to training data to fit model 5. Evaluate trained model on validation data with known outputs IDSTEM Workshop: Basics of Coding and Machine Learning Repeat with different model classes, parameters, etc.
  • 71. Machine Learning: Basic Steps 1. Define the problem 2. Curate and label the data 3. Select model class, learning algorithm, loss function, and other parameters 4. Apply learning algorithm to training data to fit model 5. Evaluate trained model on validation data with known outputs IDSTEM Workshop: Basics of Coding and Machine Learning Repeat with different model classes, parameters, etc. Evaluate best performing model on testing data
  • 72. Machine Learning Limitations IDSTEM Workshop: Basics of Coding and Machine Learning
  • 73. Machine Learning Limitations • Large data, computational requirements • Can produce unexpected results when evaluated on data under-represented in the training set IDSTEM Workshop: Basics of Coding and Machine Learning
  • 74. Machine Learning Limitations • Large data, computational requirements • Can produce unexpected results when evaluated on data under-represented in the training set IDSTEM Workshop: Basics of Coding and Machine Learning
  • 75. Questions ? Tutorial • Neural networks in Python using Google Colab • (time-permitting) MATLAB Demo