# HG changeset patch # User Jeff Hammel # Date 1504539384 25200 # Node ID d6d2ecb33c957b3bd66f265a341afb8c5f380fa6 # Parent cd43ce453358c0b3ee633663807ada484d0195fa [logistic regression] smoke tests diff -r cd43ce453358 -r d6d2ecb33c95 tests/test_logistic_regression.py diff -r cd43ce453358 -r d6d2ecb33c95 tests/test_sigmoid.py --- a/tests/test_sigmoid.py Sun Sep 03 20:46:26 2017 -0700 +++ b/tests/test_sigmoid.py Mon Sep 04 08:36:24 2017 -0700 @@ -1,7 +1,7 @@ #!/usr/bin/env python """ -test sigmoid related funcationality +test sigmoid related functionality """ import os @@ -16,6 +16,8 @@ answer = sigmoid([0,2]) assert len(answer) == 2 + assert answer[0] == 0.5 + assert abs(answer[1] - 0.88079708) < 1e-6 if __name__ == '__main__': unittest.main()