Skip to content

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

@samchan0221

Description

@samchan0221

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions