Skip to content
Permalink
dd37e8678b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
9 lines (6 sloc) 188 Bytes
sigma(t) = 1/(1+e^-t)
t = a0+a1
options = optimset('GradObj', 'on', 'MaxIter', 400);
[theta, cost]
fminunc(@(a)(costFunction(a,x,y)),initial_1,options);
plot(x,y,x, sigma(a(1)+a(2)*x))