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

01-basics - Logistic regression example #54

Closed
int8 opened this issue Jul 20, 2017 · 4 comments
Closed

01-basics - Logistic regression example #54

int8 opened this issue Jul 20, 2017 · 4 comments

Comments

@int8
Copy link

int8 commented Jul 20, 2017

hi there,

First of all, This is really good tutorial, thank you for your work!

I am having some troubles understanding Logistic Regression example here. What bothers me is lack of clear activation function at the very end of the graph. From what I see I conclude this is in fact softmax classifier rather than logistic regression. Am I missing smth?

@yunjey
Copy link
Owner

yunjey commented Jul 20, 2017

You can see here. nn.CrossEntropy computes softmax internally.This is same as when we use softmax with nn.NLLLoss.

@yunjey yunjey closed this as completed Jul 20, 2017
@int8
Copy link
Author

int8 commented Jul 20, 2017

sure, I understand softmax exists there implicitly via error function formulation - what I do not see is logistic part of logistic regresstion

@yunjey
Copy link
Owner

yunjey commented Jul 20, 2017

logistic sigmoid is just special case of softmax (when the number of class is 2). In multi-class classification task, we use softmax instead of sigmoid. This will help you.

@int8
Copy link
Author

int8 commented Jul 20, 2017

thanks a lot - helped indeed, take care

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

2 participants