Supervised Machine Learning Regression and Classification
Supervised Machine Learning Regression and Classification
and Classification
made by Sourav Bisht
Sec : A2
Linear regression models a linear relationship This technique is straightforward to understand and
between variables. It predicts a continuous output implement, making it a common choice for various
based on input features. applications.
Multiple Linear Regression
1 Expanding 2 Complex
Predictability Relationships
Multiple linear It captures more
regression incorporates complex relationships
multiple independent between variables,
variables to enhance providing insights into
predictive power. the combined effect of
different factors.
Logistic Regression
Categorical Probability Estimation
Classification
It calculates the
Logistic regression probability of an
classifies data into observation belonging to
discrete categories, such a particular category
as yes/no, true/false, or based on its features.
positive/negative.
Cost Function and Optimization
2 Learning Rate
The learning rate determines the step size
during parameter updates.
3 Convergence
The algorithm continues until it reaches a
minimum cost or a predetermined stopping
criterion.
Regularization Techniques
Preventing Overfitting
Regularization techniques are used to prevent overfitting, which
occurs when a model is too complex and starts to memorize the
training data rather than learning the underlying patterns.
Techniques like L1 and L2 regularization introduce a penalty term to
the cost function, discouraging excessive complexity in the model
and promoting simpler and more generalizable solutions.
Regularization helps improve the model's performance on unseen
data and reduces the chances of overfitting.
L1 and L2 Regularization
L1 and L2 regularization are two commonly used techniques. L1
regularization adds a penalty term to the loss function based on the
absolute values of the model's parameters, while L2 regularization
adds a penalty term based on the squared values of the
parameters. These techniques help control the complexity of the
model and prevent overfitting by discouraging large parameter
values.
Concluding Remarks and
Key Takeaways
Supervised machine learning offers powerful tools for
prediction and classification, with various techniques suitable
for different scenarios. Key takeaways include the importance
of understanding cost function and gradient descent for
optimization, and regularization to prevent overfitting.