- more common neural net functions
- factor out svm-predict