Fixed small math error in nntrainer.py