minor bug fix in learning
Merge branch 'master' of https://github.com/yujiali/pynn