What was the difference between l1 & l2 regularization?



What was the difference between l1 & l2 regularization?..

Answer / Pushpendra Raghuvanshi

L1 and L2 regularization are both techniques used to prevent overfitting in machine learning models by adding a penalty term to the loss function. However, they differ in the form of this penalty term: L1 regularization adds a term that encourages sparse solutions (i.e., solutions with many zero coefficients) by using the absolute value of the coefficients, while L2 regularization adds a term proportional to the square of the coefficients, which discourages large coefficients but does not force them to zero.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AI General Interview Questions

What is the major difference between crf and hmm ?

1 Answers  


What is the difference between strong artificial intelligence and weak artificial intelligence?

1 Answers  


Where can I find conference information?

1 Answers  


What are the applications of a.i?

1 Answers  


How was knn different from k-means clustering?

1 Answers  


What is ai backgammon?

1 Answers  


Is alexa a form of artificial intelligence?

1 Answers  


What is vanishing gradient?

1 Answers  


What are the hyperparameters of ann?

1 Answers  


Mention the difference between breadth first search and best first search in artificial intelligence?

1 Answers  


In hmm, where does the additional variable is added?

1 Answers  


What do you know about artificial intelligence? Give an example where ai is used in our regular lives?

1 Answers  


Categories
  • AI Algorithms Interview Questions AI Algorithms (74)
  • AI Natural Language Processing Interview Questions AI Natural Language Processing (96)
  • AI Knowledge Representation Reasoning Interview Questions AI Knowledge Representation Reasoning (12)
  • AI Robotics Interview Questions AI Robotics (183)
  • AI Computer Vision Interview Questions AI Computer Vision (13)
  • AI Neural Networks Interview Questions AI Neural Networks (66)
  • AI Fuzzy Logic Interview Questions AI Fuzzy Logic (31)
  • AI Games Interview Questions AI Games (8)
  • AI Languages Interview Questions AI Languages (141)
  • AI Tools Interview Questions AI Tools (11)
  • AI Machine Learning Interview Questions AI Machine Learning (659)
  • Data Science Interview Questions Data Science (671)
  • Data Mining Interview Questions Data Mining (120)
  • AI Deep Learning Interview Questions AI Deep Learning (111)
  • Generative AI Interview Questions Generative AI (153)
  • AI Frameworks Libraries Interview Questions AI Frameworks Libraries (197)
  • AI Ethics Safety Interview Questions AI Ethics Safety (100)
  • AI Applications Interview Questions AI Applications (427)
  • AI General Interview Questions AI General (197)
  • AI AllOther Interview Questions AI AllOther (6)