How to include the regularization term while implementing it in a model?

over_fitting
regularization
machine_learning

#1

Hello,

I recently read about the regularization technique to prevent and reduce overfitting by adding a complexity penalty to the loss function. How can this regularization term be included OR how to implement a model using regularization so that we may avoid overfitting on the training data?

Thanks.


#2

Hi Mukesh… here is the discussion on how to use complexity parameter … does that answer your question How to implement "pruning" while building CART models in R?