Update NeuralNetwork.py

Ignores overflow error from np.exp