raise error when sigmoid function is called with extremely large values