Difference between revisions of "L1 and L2 Regularization"
m |
m |
||
| Line 14: | Line 14: | ||
* add more data | * add more data | ||
| − | * use [[Data | + | * use [[Data Quality#Batch Norm(alization) & Standardization|Batch Norm(alization) & Standardization]] |
| − | |||
* use architectures that generalize well | * use architectures that generalize well | ||
* reduce architecture complexity | * reduce architecture complexity | ||
* add [[Regularization]] | * add [[Regularization]] | ||
| − | ** L1 and L2 Regularization - update the general cost function by adding another term known as the regularization term. | + | ** [[L1 and L2 Regularization]] - update the general cost function by adding another term known as the regularization term. |
| − | ** | + | ** Dropout - at every iteration, it randomly selects some nodes and temporarily removes the nodes (along with all of their incoming and outgoing connections) |
** [[Data Augmentation, Data Labeling, and Auto-Tagging|Data Augmentation]] | ** [[Data Augmentation, Data Labeling, and Auto-Tagging|Data Augmentation]] | ||
| − | ** [[Early Stopping]] | + | ** [[Early Stopping]] |
<youtube>xyymDGReKdY</youtube> | <youtube>xyymDGReKdY</youtube> | ||
<youtube>CEFcwpBneFo</youtube> | <youtube>CEFcwpBneFo</youtube> | ||
Revision as of 19:18, 19 September 2020
Youtube search... ...Google search
Mathematically speaking, L1 is just the sum of the weights as a regularization term in order to prevent the coefficients to fit so perfectly to overfit. There is also L2 regularization. where L2 is the sum of the square of the weights.
Good practices for addressing the Overfitting Challenge:
- add more data
- use Batch Norm(alization) & Standardization
- use architectures that generalize well
- reduce architecture complexity
- add Regularization
- L1 and L2 Regularization - update the general cost function by adding another term known as the regularization term.
- Dropout - at every iteration, it randomly selects some nodes and temporarily removes the nodes (along with all of their incoming and outgoing connections)
- Data Augmentation
- Early Stopping