fixed supervised_learning.py script test failure

fixes #813