Repository navigation
HW4 (2026): Q5 std 0.013 vs 0.007 — solver must be liblinear - #483
Open
marcos-Nieves-24 wants to merge 1 commit into
Open
marcos-Nieves-24 wants to merge 1 commit into
marcos-Nieves-24 wants to merge 1 commit into
Conversation
New entry in module-4-homework: the spec requires solver='liblinear'; the lbfgs default warns and lands on the wrong option.
3 tasks done
|
You should explicitly set solver='liblinear' when creating your Logistic Regression model (The default solver is lbfgs). The [official ML Zoomcamp 2026 Module 4 homework] explicitly requires solver='liblinear', C=1.0, and max_iter=1000 for Question 5. The difference matters because lbfgs and liblinear use different optimization algorithms. On this dataset, they can produce different model coefficients, predictions, and ROC AUC scores. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New FAQ entry for machine-learning-zoomcamp / module-4-homework.
Students hitting Q5 with the bare
LogisticRegression(max_iter=1000)constructor get std 0.013 (lbfgs default + ConvergenceWarning) instead of the correct 0.007 (solver='liblinear'). Fix-first answer with runnable per-fold code, verified against the pinned 2026 homework: https://github.com/DataTalksClub/machine-learning-zoomcamp/blob/main/cohorts/2026/homework/04-evaluation/homework.md