what is C parameter in sklearn Logistic Regression

0 votes
What is the meaning of C parameter in sklearn.linear_model.LogisticRegression? How does it affect the decision boundary? Do high values of C make the decision boundary non-linear?
Feb 24 in Machine Learning by Dev
• 6,000 points
9,153 views

1 answer to this question.

0 votes
C is known as a "hyperparameter." The parameters are numbers that tell the model what to do with the characteristics, whereas the hyperparameters instruct the model on how to choose parameters.
Regularization will penalize the extreme parameters, the extreme values in the training data leads to overfitting.
A high value of C tells the model to give more weight to the training data. A lower value of C will indicate the model to give complexity more weight at the cost of fitting the data. Thus, a high Hyper Parameter value C indicates that training data is more important and reflects the real world data, whereas low value is just the opposite of this.
answered Feb 24 by Nandini
• 5,480 points

Related Questions In Machine Learning

0 votes
1 answer

what is r-squared in linear regression models?

You inquired about the code x = ...READ MORE

answered Apr 4 in Machine Learning by Nandini
• 5,480 points
137 views
0 votes
1 answer

Why is Pymc3 ADVI worse than MCMC in this logistic regression example?

This is a good query! Mean field ...READ MORE

answered Apr 5 in Machine Learning by Dev
• 6,000 points
188 views
0 votes
1 answer
0 votes
1 answer

Logistic regression coefficient meaning

What did the intercept teach you? It's ...READ MORE

answered Mar 23 in Machine Learning by Nandini
• 5,480 points
91 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 3,126 views
0 votes
1 answer
0 votes
1 answer

What is alpha in ridge regression?

‘L2 regularization‘ or Ridge Regularization  adds penalty ...READ MORE

answered Mar 2 in Machine Learning by Nandini
• 5,480 points
254 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP