def test_sigmoidActivationFunction(self): self.assertEqual(hf.sigmoidActivationFunction(0), 0.5) self.assertEqual(hf.sigmoidActivationFunction(10), 0.9999546021312976) self.assertEqual(hf.sigmoidActivationFunction(-10), 4.5397868702434395e-05)
# # # # __author__ = "Adam" __date__ = "$Aug 24, 2015 3:40:51 PM$" import helperFunctions as hf if __name__ == "__main__": result = hf.sigmoidActivationFunction() print result