PyTorch for Classification
Build classifiers in PyTorch from the ground up: encode labels, turn scores into probabilities with sigmoid and softmax, pick the right loss, train a model, and judge it with accuracy, precision, recall and F1, for two classes and for several.
- Intermediate level
- 2 modules
- 6 lessons
- 22 quiz questions
Syllabus
01Two Classes: Yes or NoEncode a yes/no label, squash a score into a probability, measure how wrong a probability is, then train a model and judge it honestly.3 lessons
02Several ClassesGive the network one output per class, turn logits into probabilities with softmax, pick a class with argmax, and train with cross-entropy.3 lessons