difference between a cost function and the gradient descent equation in logistic regression

0 votes
I'm not able to understand the difference between the cost function and the gradient. There are examples on the net where people compute the cost function and then there are places where they don't and just go with the gradient descent function

What is the difference between the two if any?
Feb 22, 2022 in Machine Learning by Dev
• 6,000 points
1,018 views

1 answer to this question.

0 votes
Cost function is a way to evaluate the performance of the model/algorithm. So if the predicted values differ a lot  from the actual values then this cost function will be high. This also indicates that the algorithm is not performing well, or not learning well from the data.
While Gradient descent is used for finding a local minimum, it is an optimization algorithm used to train machine learning models and neural networks.
Gradient descent helps to find the best parameters that minimize the model’s cost function.
answered Feb 22, 2022 by Nandini
• 5,480 points

Related Questions In Machine Learning

0 votes
1 answer

Is there any difference between an activation function and a transfer function?

Transfer function and Activation function with respect ...READ MORE

answered Feb 21, 2022 in Machine Learning by Dev
• 6,000 points
3,002 views
0 votes
1 answer

What is difference between loss function and RMSE in Machine Learning?

The loss function is a function of ...READ MORE

answered Feb 23, 2022 in Machine Learning by Dev
• 6,000 points
2,427 views
0 votes
1 answer

What is the difference between a Confusion Matrix and Contingency Table?

Confusion Matrix is a classification matrix used ...READ MORE

answered Mar 2, 2022 in Machine Learning by Dev
• 6,000 points
1,309 views
0 votes
1 answer

Use different distance formula other than euclidean distance in k means

K-means is based on variance minimization. The sum-of-variance formula ...READ MORE

answered Jun 21, 2018 in Data Analytics by Sahiti
• 6,370 points
1,408 views
0 votes
1 answer

Overfitting vs Underfitting

In statistics and machine learning, one of ...READ MORE

answered Jul 11, 2018 in Data Analytics by CodingByHeart77
• 3,740 points
944 views
+1 vote
1 answer

How to handle Nominal Data?

Nominal data is basically data which can ...READ MORE

answered Jul 24, 2018 in Data Analytics by Abhi
• 3,720 points
472 views
+2 votes
2 answers

How to handle outliers

There are multiple ways to handle outliers ...READ MORE

answered Jul 24, 2018 in Data Analytics by Abhi
• 3,720 points
722 views
0 votes
1 answer

What is the difference between linear regression and logistic regression?

Hi Dev, to answer your question Linear Regression ...READ MORE

answered Feb 2, 2022 in Machine Learning by Nandini
• 5,480 points
912 views
0 votes
1 answer

Difference between classification and regression score in Python scikit learn

Classification Score is used for discrete values ...READ MORE

answered Feb 24, 2022 in Machine Learning by Nandini
• 5,480 points
408 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