changeset 20:d6d2ecb33c95

[logistic regression] smoke tests
author Jeff Hammel <k0scist@gmail.com>
date Mon, 04 Sep 2017 08:36:24 -0700
parents cd43ce453358
children 0149be5a984c
files tests/test_logistic_regression.py tests/test_sigmoid.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()