Neural network simulator