Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter4 Page 126 #171

Open
diegoruggi opened this issue Apr 14, 2024 · 2 comments
Open

Chapter4 Page 126 #171

diegoruggi opened this issue Apr 14, 2024 · 2 comments

Comments

@diegoruggi
Copy link

Hi Sebastian,

The second code block on page 126 states:
"Note that C=1.0 is the default. You can increase or decrease it to make the regularization effect stronger or weaker, respectively."
which implies a proportional relationship between C and lambda, instead of an inverse relationship as stated on page 128. Additionally, on page 127, it's stated : "...However,...by further increasing the regularization strength--that is, choosing lower values for the C parameter."

I want to make sure I'm understanding this correctly in the event that it is an error and not listed in the errata section.

@rasbt
Copy link
Owner

rasbt commented Apr 18, 2024

Thanks for the feedback. You are right, increasing the value of C makes the regularization effect weaker because in sklearn C is the inverse of regularization strength. I'll make a note to be more clear about that in future reprints. Thanks!

@diegoruggi
Copy link
Author

No problem; loving the book!

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

No branches or pull requests

2 participants