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:
© 2018 Data Science Central ® Powered by
Badges | Report an Issue | Privacy Policy | Terms of Service