---
title: "Discussion on \"The Balancing Act: Choosing the Right Lambda in Regularization (Linear Regression)\" | Hashnode"
description: "Discussion on \"The Balancing Act: Choosing the Right Lambda in Regularization (Linear Regression)\". Since we can't be sure which of the parameter to penalize, we penalize all by adding the Regularization term to the cost function. A regularized cost function is defined by:\n$$J(\\mathbf{w}, b) = \\frac{1}{2m} \\sum_{i=1}^m \\left( f_{\\mathbf{w}, b}(\\mat..."
url: "https://hashnode.com/posts/the-balancing-act-choosing-the-right-lambda-in-regularization-linear-regression/67b4bcbbc28336dd5b951e8a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Balancing Act: Choosing the Right Lambda in Regularization (Linear Regression)](https://omagbs.hashnode.dev/the-balancing-act-choosing-the-right-lambda-in-regularization-linear-regression?utm_source=hashnode&utm_medium=feed)

Since we can't be sure which of the parameter to penalize, we penalize all by adding the Regularization term to the cost function. A regularized cost function is defined by: $$J(\\mathbf{w}, b) = \\frac{1}{2m} \\sum\_{i=1}^m \\left( f\_{\\mathbf{w}, b}(\\mat...

Feb 18, 2025 · 1 min read · omagbs.hashnode.dev  
Updated Apr 26, 2025  
Read the article

-   [#regularization](https://hashnode.com/tag/regularization)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)
-   [#linearregression](https://hashnode.com/tag/linearregression)

## Written by

[Paul Omagbemi](https://hashnode.com/@Omagbs)

@Omagbs

  
[View profile](https://hashnode.com/@Omagbs)

If data is the new oil, call me AI-finery. ‘Lisan al-Data’—inspired by Dune, where knowledge is power and data is prophecy.

Exploring the language of data, one algorithm at a time. Machine learning enthusiast, AI researcher, and advocate for tech-driven solutions to real-world challenges. Passionate about using AI for public safety and ethical technology. Join me as I document my journey through data, models, and insights.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
