UNIT 3�CLASSIFICATION�
PREPARED BY : NEHAL SHAH
CLASSIFICATION
Classification:�
�
The following are the steps involved in building a classification model:�
Classification Terminologies In Machine Learning:�
�
Classification Algorithms��
Algorithm Selection:��
What is the Classification Algorithm?�
�
�
�
Example: Decision Trees, Naïve Bayes, ANN.
�
Types of ML Classification Algorithms:�
LOGISTIC REGERESSION�
Types of Logistic Regression�
Linear Regression | Logistic Regression |
Linear regression is used to predict the continuous dependent variable using a given set of independent variables. | Logistic Regression is used to predict the categorical dependent variable using a given set of independent variables. |
Linear Regression is used for solving Regression problem. | Logistic regression is used for solving Classification problems. |
In Linear regression, we predict the value of continuous variables. | In logistic Regression, we predict the values of categorical variables. |
In linear regression, we find the best fit line, by which we can easily predict the output. | In Logistic Regression, we find the S-curve by which we can classify the samples. |
Least square estimation method is used for estimation of accuracy. | Maximum likelihood estimation method is used for estimation of accuracy. |
The output for Linear Regression must be a continuous value, such as price, age, etc. | The output of Logistic Regression must be a Categorical value such as 0 or 1, Yes or No, etc. |
In Linear regression, it is required that relationship between dependent variable and independent variable must be linear. | In Logistic regression, it is not required to have the linear relationship between the dependent and independent variable. |
In linear regression, there may be collinearity between the independent variables. | In logistic regression, there should not be collinearity between the independent variable. |
Cost Function
Overfitting
Regularization
KNN��
knn
�
How to find closest point?�Euclidean Distance�
Naïve Bayes Algorithm��
Problem: If the weather is sunny, then the Player should play or not?�Solution: To solve this, first consider the below dataset:��
SVM��
Consider the below diagram in which there are two different categories that are classified using a decision boundary or hyperplane:�
When we look at the hyper-plane in original input space it looks like a circle:�