AI Lec 4
AI Lec 4
Lec.4
Assoc. Prof. Anwer Sayed
Lecture 4
Multivariate Linear Regression w. Gradient
Descent
• example, what if we want to predict the cost of a house and we have
access to the size, number of bedrooms, number of bathrooms, age
etc. For this kind of prediction we need to use Multivariate Linear
Regression.
Cost function
Gradient Descent
https://github.com/drbilo/multivariate-linear-
regression/blob/master/housepricelinearregression.py
Multivariate Linear Regression w. Gradient
Descent
• example, what if we want to predict the cost of a house and we have
access to the size, number of bedrooms, number of bathrooms, age
etc. For this kind of prediction we need to use Multivariate Linear
Regression.
Cost function
Gradient Descent
Classification
Classification
Algorithms
• The Classification algorithm classifies
the dataset into a number of classes.
Thus, is called classification. These
classes are such as, Yes or No, 0 or 1,
cat or dog, etc.
• Face Recognition
• Character recognition
• Spam detection
• Medical detection: from symptoms to illnesses
• Biometrics: Recognition / authentication using physical and/or
behavioral characteristics: Face, iris, signature ,…..etc
Classification Algorithms
• The algorithm which implements the classification on a dataset is
known as a classifier.
There are two types of Classifications:
❖Binary Classifier
If the classification problem has only two possible outcomes, then
it is called as Binary Classifier.
Examples: YES or NO, MALE or FEMALE, CAT or DOG, etc.
❖Multi-class Classifier
If a classification problem has more than two outcomes, then it is
called as Multi-class Classifier.
Example: Classifications of types of crops , Classification of types
of careers .
Binary Classifier
Multi-class Classifier
Classification Algorithms
• Classification Algorithms can be further divided into the Mainly two category: