Day 2-FDP
Day 2-FDP
https://miro.medium.com/max/629/1*_HoMKjrWahRiI-JmwYW6zg.png
© Edunet Foundation. All rights reserved.
Agenda
• Classification of Machine Learning Algorithms
• Supervised Learning
• Regression vs Classification
• Linear Regression
• Classification
https://social.technet.microsoft.com/wiki/cfs-filesystemfile.ashx/__key/communityserver-wikis-components-files/00-00-00-00-05/7002.5_5F00_1.PNG
https://cdn-images-1.medium.com/max/1600/1*Iz7bCLrPTImnBDOOEyE3LA.png
© Edunet Foundation. All rights reserved.
Regression vs Classification
• Regression algorithms are used to predict the continuous values.
• Classification algorithms are used to predict or classify the discrete values.
https://www.javatpoint.com/regression-vs-classification-in-machine-learning
© Edunet Foundation. All rights reserved.
Regression vs Classification
https://www.javatpoint.com/regression-vs-classification-in-machine-learning
© Edunet Foundation. All rights reserved.
Linear Regression
It shows a linear relationship between a dependent (y) and one or more
independent (x) variables.
https://www.javatpoint.com/linear-regression-in-machine-learning
© Edunet Foundation. All rights reserved.
Least Square Method
1. To find the best fit line that
represents the relationship
between an independent and
dependent variables
https://medium.com/analytics-vidhya/ordinary-least-square-ols-method-for-linear-regression-ef8ca10aadfc
© Edunet Foundation. All rights reserved.
Mathematical Intuition
• Cost function: It measures how a linear regression model is performing. It
is the sum of the squares of the residuals.
https://www.datatechnotes.com/2019/02/regression-model-accuracy-mae-mse-rmse.html
© Edunet Foundation. All rights reserved.
Hands-On Linear Regression
https://www.analyticsvidhya.com/blog/2021/04/beginners-guide-to-logistic-regression-using-python/
© Edunet Foundation. All rights reserved.
Logistic Regression
• Logistic regression is one of the most popular Machine Learning algorithms,
which comes under the Supervised Learning technique.
• It is used for predicting the categorical dependent variable using a given set of
independent variables
• The outcome can be either Yes or No, 0 or 1, true or False, etc. but instead
of giving the exact value as 0 and 1, it gives the probabilistic values which lie
between 0 and 1
Red : Apple
Fruit color Score vs Fruit
Yellow : Not Apple
© Edunet Foundation. All rights reserved.
A sigmoid Function is a mathematical function, which has a characteristic S-shaped
curve. It has the property of mapping the entire number line into a small range,
between 0 and 1
Y(x) = 1/(1+ e-x)
https://www.analyticsvidhya.com/blog/2018/03/introduction-k-neighbours-algorithm-clustering/