Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This should be the sigmoid function #5

Open
zakir8251 opened this issue Nov 10, 2018 · 3 comments
Open

This should be the sigmoid function #5

zakir8251 opened this issue Nov 10, 2018 · 3 comments

Comments

@zakir8251
Copy link

Hey shouldn't this be the sigmoid fn ... logistic regression vs linear?
[~,p]=max(sigmoid(X*all_theta'),[],2);

@swapnil0070
Copy link

g=1./(1+exp(-z))
sigmoid.zip

@SenthilVikram
Copy link

In nnCostFunction.m
It's showing an error when I write

y_matrix = eye(num_labels)(y,:);

But not showing an error when I rewrite -

I = eye(num_labels);
y_matrix = I(y,:);

@Vasukapoor07
Copy link

It is easy to understand.
m = length(y)
g = ones(m,1) ./ ((ones(m,1) + exp(-z))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants