BUG: possible to have empty shape. Replace with ndim check.
TST: update test_svm, passes