SVM notes (needs significant rewrite).