Slide 1

Slide 1 text

Course Instructor: Olayinka Peter OLUWAFEMI, AI/ML Instructor, Semicolon Africa B.Sc. (Hons) Computer Science, Ekiti State University Monitored and mentored by: Dr. (Mrs.) Oyinloye, Head Of Department, Computer Science, Ekiti State University Part One What is machine learning? An Introduction to Machine Learning A CSC 402 ‘SPECIAL TOPICS’ mini-course 23 Sept 2019

Slide 2

Slide 2 text

What is Machine Learning?

Slide 3

Slide 3 text

What is Machine Learning? Machine Learning is the science (and art) of programming computers so they can learn from data.

Slide 4

Slide 4 text

What is Machine Learning? Machine Learning is the science (and art) of programming computers so they can learn from data. Arthur Samuel (1959). Machine Learning: Field of study that gives computers the ability to learn without being explicitly programmed.

Slide 5

Slide 5 text

What is Machine Learning? Machine Learning is the science (and art) of programming computers so they can learn from data. Arthur Samuel (1959). Machine Learning: Field of study that gives computers the ability to learn without being explicitly programmed. A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improved with experience E. Tom Mitchell, 1998

Slide 6

Slide 6 text

What is Machine Learning? Machine Learning is the science (and art) of programming computers so they can learn from data. Arthur Samuel (1959). Machine Learning: Field of study that gives computers the ability to learn without being explicitly programmed. A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improved with experience E. Tom Mitchell, 1998

Slide 7

Slide 7 text

What is Machine Learning? Elements: ● Task T ● Experience E ● Performance measure P Detect the dialog act of an utterance T: Classify the dialog act of an utterance E: A set of utterances labeled with their dialog acts P: The fraction of utterances correctly classified

Slide 8

Slide 8 text

What is Machine Learning? Elements: ● Task T ● Experience E ● Performance measure P Filter spam emails T: Classifying emails as spam or not spam E: A set of labelled emails as spam or not spam P: The number (or fraction) of emails correctly classified as spam/not spam

Slide 9

Slide 9 text

What is Machine Learning? Elements: ● Task T ● Experience E ● Performance measure P Self-driving cars T: Drive on public highways using vision sensors E: Sequence of images and steering commands from human drivers P: Average distance traveled before an error

Slide 10

Slide 10 text

What part of the elements seem to matter the most?

Slide 11

Slide 11 text

What part of the elements seem to matter the most? Answer: The Experience E

Slide 12

Slide 12 text

Experience E 1. Supervised learning 2. Unsupervised learning Others: Reinforcement learning, etc

Slide 13

Slide 13 text

Experience E 1. Supervised learning 2. Unsupervised learning Others: Reinforcement learning, etc Train a model using labelled data Example: image classification, dialog act classification.

Slide 14

Slide 14 text

Experience E 1. Supervised learning 2. Unsupervised learning Others: Reinforcement learning, etc Train a model using unlabelled data Example: market segmentation, Social network analysis.

Slide 15

Slide 15 text

Experience E 1. Supervised learning 2. Unsupervised learning Others: Reinforcement learning, etc Example: game of ping pong, chess Image source: Wikipedia

Slide 16

Slide 16 text

Supervised learning In supervised learning, the “right answers” are given. That is, every data in the dataset has a class label it belongs to. However, in supervised learning, a problem could take either of the two forms: ● Regression ● Classification

Slide 17

Slide 17 text

Supervised learning In supervised learning, there’s also need to define features. Features are the characteristics of the instances that the model uses for predictions Features for whether an image is a dog or a cat ● Size ● Color Features for whether a breast cancer image is benign or malignant ● Age ● Tumor size

Slide 18

Slide 18 text

Supervised learning In supervised learning, there’s also need to define features. Features are the characteristics of the instances that the model uses for predictions Features for house price prediction: ● Overall condition of the house ● Neighborhood ● Condition of the basement ● Number of bedrooms ● Construction date ● Number of schools in within 2 km ● Condition of the kitchen

Slide 19

Slide 19 text

Supervised learning In supervised learning, the “right answers” are given. That is, every data in the dataset has a class label it belongs to. However, in supervised learning, a problem could take either of the two forms: ● Regression ● Classification

Slide 20

Slide 20 text

Regression problem - Supervised learning In regression problems, predicted valued output are continuous. An example is a problem of predicting housing prices based on land size, location, etc ML algorithms include: Linear regression, etc

Slide 21

Slide 21 text

Regression problem - Supervised learning In regression problems, predicted valued output are continuous. An example is a problem of predicting housing prices based on land size, location, etc Image source: Wingshore

Slide 22

Slide 22 text

Regression problem - Supervised learning In regression problems, predicted valued output are continuous. Let’s predict the price of a new input value of 1250 ft We plot a linear straight line for this purpose Image source: Wingshore

Slide 23

Slide 23 text

Classification problem - Supervised learning In classification problems, predicted valued output are discrete. An example is a CT scan image for breast cancer as benign or malignant, or classifying emails as spam or not spam. ML algorithms include: SVM, Logistic regression, KNN, Neural networks, etc

Slide 24

Slide 24 text

Classification problem - Supervised learning In classification problems, predicted valued output are discrete. An example is a CT scan image for breast cancer as benign or malignant, or classifying emails as spam or not spam. Image source: mdpi.com

Slide 25

Slide 25 text

Unsupervised learning (Clustering) In unsupervised learning, no answers (class labels) are given. Here, we tell the program: “Here is the dataset. Can you find some structure in it?” Examples include: Market segmentation, Social network analysis, Astronomical data analysis, etc.

Slide 26

Slide 26 text

Unsupervised learning (Clustering) In unsupervised learning, no answers (class labels) are given. Examples include: Market segmentation, Social network analysis, Astronomical data analysis, etc. Image source: GeeksforGeeks

Slide 27

Slide 27 text

Any questions?

Slide 28

Slide 28 text

Slides created by: Olayinka Peter OLUWAFEMI Edited by: Ibukun MUYIDE Vetted and approved by: Dr. (Mrs.) Oghenerukevwe OYINLOYE Thanks