RegulariZation l1 & l2

can u plz explain me what is Regularization and how can we use it ??

hey @Ashu1318 ,
You know that , for our model to learn we create a loss function , based on its predicted value our model improves itself.
Now, sometimes what happen is , the difference between predicted value and the actual value goes very high or very low , in this case the learning of our model get deviated hence to correct this regularization is used.
So , Regularization is a technique or in more better way a penalty term which is made on the loss function to reduce the effect of these higher differences occuring on the actual learning of the model.

This can be adding or substracting a constant , anything. It mainly depends on your choice.

But , there are also some models that use them by default.
for example , Lasso and ridge , modifications of linear models that use L1 and L2 regularizations.

I hope this helped.
:slightly_smiling_face:

okay thanks got it, I will try it myself and let u know if there would be any problem

yeah sure. No problem in that.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.