Skip to content

Fix loss calculation in LogisticRegressionGD#241

Open
tkieft wants to merge 1 commit intorasbt:mainfrom
tkieft:fix_ch03_logistic_loss
Open

Fix loss calculation in LogisticRegressionGD#241
tkieft wants to merge 1 commit intorasbt:mainfrom
tkieft:fix_ch03_logistic_loss

Conversation

@tkieft
Copy link
Copy Markdown

@tkieft tkieft commented Apr 11, 2026

The division by X.shape[0] should apply to the entire previous term. This matches the code in the Jupyter notebook version of this file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant