Skip to content
Discussion options

You must be logged in to vote

Hello @Tania-Gardasevic,

Thank you for pointing this out. We have reviewed the issue and found that recent updates to scikit-learn have affected the result in Chapter 5 (Q4). In earlier versions, LogisticRegression used penalty="none", whereas in newer versions this has been replaced with penalty=None. Previously, the expected answer for Chapter 5 (Q4) was 48.40, but with the library update, the correct answer is now 44.80. Therefore, your code and result are correct. For reference, the earlier result of 48.4 can be reproduced using scikit-learn==1.1.3; however, this version is not compatible with Python 3.12 or above.

We also identified that a few other quizzes were affected by the libra…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Mdnaimulislam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants