← Questions

Softmax cross-entropy forward and backward, then a training loop

0
WaymoCodingLast asked Sep 2026

Implement from scratch, with NumPy but no autograd, the forward and backward pass of a softmax layer followed by cross-entropy loss. Keep it numerically stable. Then use it in a small training loop (for example a linear classifier trained with gradient descent) and show the loss going down.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding