Fix typo in second site noise computation and svm classification

1. setSizeToFov will change the pattern, sadly, and we should be careful
2. svm will fail totally if an NaN is passed in