© 2026 Hashnode
Introduction: Why I decided to implement Regularization From Scratch After implementing Linear machine learning models. I learned about overfitting, bias-variance tradeoff, and regularization in theory. L1 and L2 penalties existed, and I could explai...

Introduction While working on an Employee Turnover Prediction project, I ran into a confusion that almost every Machine Learning beginner faces: Is L1 the same as Lasso?If yes, why did my classification model break when I applied Lasso?And why does ...

What is supervised machine learning? This is one of the main models in the machine learning module and is one of the most basic and widely used training models. In this model, you train the system by providing the correct features and the correct ans...

Well, still similar to the Regularization applied to linear, the regularized cost function for logistic regression is defined by: $$J(\mathbf{w}, b) = -\frac{1}{m} \sum_{i=1}^m \left[ y^{(i)} \log(f_{\mathbf{w}, b}(\mathbf{x}^{(i)})) + (1 - y^{(i)}) ...

Since we can't be sure which of the parameter to penalize, we penalize all by adding the Regularization term to the cost function. A regularized cost function is defined by: $$J(\mathbf{w}, b) = \frac{1}{2m} \sum_{i=1}^m \left( f_{\mathbf{w}, b}(\mat...

So, to simply put, Regularization is just simply making your parameters smaller and relatively less effective to avoid overfitting. oh, and the beautiful thing? — you get to keep all your features because you don't know which one might just make the ...

Overview When building and training deep learning models we often facing the problem of overfitting. Overfitting may happen due the model complexity or the model is “memorized” the training dataset instead of learning generalizable patterns. This be...

In machine learning, overfitting is a common problem where models perform well on training data but fail to generalize to unseen data. This article explores essential regularization techniques that help combat overfitting and improve model performanc...
