Week 2-Lec 2 Types of Learning.pdf
Document Details
Uploaded by CourteousPointillism
Full Transcript
Types of Learning/ Learning Process Saad Bin Ahmed Department of Computer Science Faculty of Science and Environmental Studies Lakehead University – Thunder Bay 5011-FA - Machine Learning & Neural Nets Week 2...
Types of Learning/ Learning Process Saad Bin Ahmed Department of Computer Science Faculty of Science and Environmental Studies Lakehead University – Thunder Bay 5011-FA - Machine Learning & Neural Nets Week 2 Lecture 2 Machine Learning Overview Saad B. Ahmed Machine Learning Overview Saad B. Ahmed TYPES OF MACHINE LEARNING Saad B. Ahmed There are numerous types of machine learning, but we will discuss the types based on which an external supervision is required for a machine learning algorithm to get trained. Saad B. Ahmed Types of ML There are numerous types of machine learning, but we will discuss the types based on which an external supervision is required for a machine learning algorithm to get trained. Saad B. Ahmed Supervised Machine Learning We know that machine learning is all about learning from data. In data you have an input and output too and you want to investigate relation among them so that you can predict an output against the new input. Saad B. Ahmed Supervised Machine Learning We know that machine learning is all about learning from data. In data you have an input and output too and you want to investigate relation among them so that you can predict an output against the new input. Most of the machine learning is performing supervised machine learning tasks. Saad B. Ahmed Example Suppose you have data of 5000 students. In this data you are analysing if student succeeded to secure a job after degree completion. You are considering two features (IQ, CGPA) and deciding if job has been secured or not? Saad B. Ahmed Example Suppose you have data of 5000 students. In this data you are analysing if student succeeded to secure a job after degree completion. You are considering two features (IQ, CGPA) and deciding if job has been secured or not? Saad B. Ahmed Example Suppose you have data of 5000 students. In this data you are analysing if student succeeded to secure a job after degree completion. You are considering two features (IQ, CGPA) and deciding if job has been secured or not? Saad B. Ahmed Example Suppose you have data of 5000 students. In this data you are analysing if student succeeded to secure a job after degree completion. You are considering two features (IQ, CGPA) and deciding if job has been secured or not? Saad B. Ahmed In supervised learning we have two parts, Regression Classification To discuss further about regression and classification we need to understand types of data as a first step. Saad B. Ahmed In supervised learning we have two parts, Regression Classification To discuss further about regression and classification we need to understand types of data as a first step. Saad B. Ahmed Regression If you are working on supervised machine learning problem, it means you have a data set which has both input and output columns. If output column is numerical then we call that supervised machine learning problem as regression Saad B. Ahmed Regression If you are working on supervised machine learning problem, it means you have a data set which has both input and output columns. If output column is numerical then we call that supervised machine learning problem as regression Saad B. Ahmed Examples of Regression Examples: Prediction of Age of a person from his/her photo Price of house in specific area Average temperature/ Snowfall during Winter Cumulative score in ML No. of Steps per day Saad B. Ahmed Examples of Regression Examples: Prediction of Age of a person from his/her photo Price of house in specific area Average temperature/ Snowfall during Winter Cumulative score in ML No. of Steps per day Saad B. Ahmed Classification In classification, you still working on supervised learning model, but the target column is categorical. Examples: Gender of a person using his/her photo or handwriting style Spam filtering Object or face detection Temperature/ Snowfall: Normal or Abnormal Letter grade in ML course More than 10000 steps taken daily Saad B. Ahmed Classification In classification, you still working on supervised learning model, but the target column is categorical. Examples: Gender of a person using his/her photo or handwriting style Spam filtering Object or face detection Temperature/ Snowfall: Normal or Abnormal Letter grade in ML course More than 10000 steps taken daily Saad B. Ahmed Classification In classification, you still working on supervised learning model, but the target column is categorical. Examples: Gender of a person using his/her photo or handwriting style Spam filtering Object or face detection Temperature/ Snowfall: Normal or Abnormal Letter grade in ML course More than 10000 steps taken daily Saad B. Ahmed Classification In classification, you still working on supervised learning model, but the target column is categorical. Saad B. Ahmed Examples of Regression and Classification Regression Classification 1. Given house data, predict the price 1. Spam or not spam email 2. How many dogs are there in an image 2. Weather prediction if rain is happening today or not 3. If dog exist in the image or not Saad B. Ahmed Examples of Regression and Classification Regression Classification 1. Given house data, predict the price 1. Spam or not spam email 2. How many dogs are there in an image 2. Weather prediction if rain is happening today or not 3. If dog exist in the image or not Key Point: For supervised learning, you need to look at problem, if the target is given with the input. Then you need to look if that problem is regression or classification which you can determine by looking at the output column. Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed Supervised Learning Setup Saad B. Ahmed