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

When using PyTorch nn.modules abstraction, why didn't you add the softmax layer to the model? #1

Open
samchan0221 opened this issue Dec 8, 2020 · 0 comments

Comments

@samchan0221
Copy link

I've tried adding the softmax layer to the model but the accuracy falls. I can't figure out why, and the loss seems to converge to a value around 1.0, with ~70% accuracy.

I'm not using the same dataset as yours, I am using the datasets from sklearn:
data = make_classification(n_samples=3000, n_features=35, n_informative=25, n_redundant=0, n_classes=4)

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

1 participant