← Questions

Two-layer neural network in NumPy

0
Reflection AICodingLast asked Sep 2024

Write a small neural network with two layers using only NumPy: no deep learning framework. Set up the weights, run inputs through both layers and produce class probabilities with a softmax at the end.

Expect to be questioned on the details of your exponent and softmax code: what can go wrong when you call np.exp on raw scores, and how your softmax handles it.

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