← Questions

Two-layer neural network in NumPy

0
Reflection AICodingLast asked Sep 2024

A coding interview question asked in Reflection AI's technical phone screen, last asked Sep 2024. It tests numpy, neural networks and softmax.

Write a small neural network with two layers using only NumPy, no deep learning framework. Initialize the weights, run a batch of inputs through both layers and return class probabilities from a softmax at the end.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

numpy · neural networks · softmax

Your code and the AI tutor open when you unlock this question.