| New Reply |
Logistic Regression Cost Function |
Share Thread | Thread Tools |
| Jul5-12, 07:45 PM | #1 |
|
|
Logistic Regression Cost Function
Hi,
I am studying logistic regression and gradient ascent and have seen it used with a cost function and without one. Could anyone tell me why you would use a cost function? It seems just as effective without one. alpha = .05 h = data * weights error = labels - sigmoid(h) weights = weights + alpha * data * error At this point I would think I can just loop through the above code and break when "error" converges. However, I've also seen code where you would pass "weights" to a cost function and break when the cost function converges. Please let me know if you need more information from me. Thanks |
| PhysOrg.com |
science news on PhysOrg.com >> Hong Kong launches first electric taxis >> Morocco to harness the wind in energy hunt >> Galaxy's Ring of Fire |
| New Reply |
| Thread Tools | |
Similar Threads for: Logistic Regression Cost Function
|
||||
| Thread | Forum | Replies | ||
| Does logistic regression model have residuals? | Set Theory, Logic, Probability, Statistics | 0 | ||
| Need advice applying a logistic regression to model school data | General Math | 0 | ||
| Logistic Regression with Dummy Variables as regressors? | Set Theory, Logic, Probability, Statistics | 0 | ||
| Simple Logistic Regression | Set Theory, Logic, Probability, Statistics | 0 | ||
| how to calculate regression of a logistic curve | Set Theory, Logic, Probability, Statistics | 1 | ||