svm sometimes gives nan preds; assert this isn't happening earlier