Emulating a neural network