---
title: "Discussion on \"Regularization in Logistic Regression: Same Idea, Different Function\" | Hashnode"
description: "Discussion on \"Regularization in Logistic Regression: Same Idea, Different Function\". Well, still similar to the Regularization applied to linear, the regularized cost function for logistic regression is defined by:\n$$J(\\mathbf{w}, b) = -\\frac{1}{m} \\sum_{i=1}^m \\left[ y^{(i)} \\log(f_{\\mathbf{w}, b}(\\mathbf{x}^{(i)})) + (1 - y^{(i)}) ..."
url: "https://hashnode.com/posts/regularization-in-logistic-regression-same-idea-different-function/67b51bdb8a04b2d94d04e8ee"
---

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

Discussion

# [Regularization in Logistic Regression: Same Idea, Different Function](https://omagbs.hashnode.dev/regularization-in-logistic-regression-same-idea-different-function?utm_source=hashnode&utm_medium=feed)

Well, still similar to the Regularization applied to linear, the regularized cost function for logistic regression is defined by: $$J(\\mathbf{w}, b) = -\\frac{1}{m} \\sum\_{i=1}^m \\left\[ y^{(i)} \\log(f\_{\\mathbf{w}, b}(\\mathbf{x}^{(i)})) + (1 - y^{(i)}) ...

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

-   [#machine-learning](https://hashnode.com/tag/machine-learning)
-   [#gradient-descent](https://hashnode.com/tag/gradient-descent)
-   [#logistic-regression](https://hashnode.com/tag/logistic-regression)
-   [#regularization](https://hashnode.com/tag/regularization)

## 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.
