Hello everyone,
I want to minimize J(theta) of Logistic regression by using Gradient Descent(GD) algorithm.
I have wrote a code in matlab and python both by using GD but getting the value of theta very less/different(wrt fminunc function of Matlab)
For example: for the given set of data, by using GD algorithm, with following input:
num_iters=400; alpha=0.0001;
got the following output:
while using the fminunc(a matlab inbuilt function) with iter=400 ,got the following output.
Please help me, which method is correct to adopt and why?
I am uploading the all files of my code(both matlab and python).
I am also unable to plot the decision boundary.
Can anyone please help me to sort out my problem?
Thanks and regards
Tags: Gradient, classification, descent, logistic, regression
© 2019 Data Science Central ® Powered by
Badges | Report an Issue | Privacy Policy | Terms of Service
Most Popular Content on DSC
To not miss this type of content in the future, subscribe to our newsletter.
Technical
Non Technical
Articles from top bloggers
Other popular resources
Archives: 2008-2014 | 2015-2016 | 2017-2019 | Book 1 | Book 2 | More
Most popular articles