# Course 2. Regularization

**URL:** <https://community.deeplearning.ai/t/course-2-regularization/72115>\
**Category:** Improving Deep Neural Networks: Hyperparameter tun\
**Tags:** coursera-platform\
**Created:** [December 5, 2021, 9:45pm UTC](https://community.deeplearning.ai/t/course-2-regularization/72115 "2021-12-05T21:45:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hongwen\_Guo](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/hongwen_guo/32/171676_2.png) [@Hongwen\_Guo](https://community.deeplearning.ai/u/Hongwen_Guo)\
**Post date:** [December 5, 2021, 9:45pm UTC](https://community.deeplearning.ai/t/course-2-regularization/72115/1 "2021-12-05T21:45:22Z")

</div>

L2 regularization is to make weights small, to reduce overfitting.  
Dropout is to remove some neurons in hidden layers. Why don’t we use L1 norm on weights to do the dropout? Something similar to Lasso, Ridge, and Elastic Net models. Any insights?

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![balaji.ambresh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/balaji.ambresh/32/128697_2.png) [@balaji.ambresh](https://community.deeplearning.ai/u/balaji.ambresh)\
**Post date:** [April 23, 2022, 3:05pm UTC](https://community.deeplearning.ai/t/course-2-regularization/72115/2 "2022-04-23T15:05:00Z")

</div>

`Dropout` doesn’t always shutoff the same neurons in a layer. It selects a few at random for each iteration.  
Should you use L1, you’ll turn off a few connections from certain inputs over time and there’s no randomness involved.

There’s nothing stopping you from specifying a penalty on [weights / bias](https://www.tensorflow.org/api_docs/python/tf/keras/regularizers/Regularizer)
