Use absolute imports in svm/__init__.py (pattern.vector)
+from __future__ import absolute_import
+
LIBSVM = LIBLINEAR = True
try:
- import libsvm
- import libsvmutil
+ from . import libsvm
+ from . import libsvmutil
except ImportError as e:
LIBSVM = False
raise e
try:
- import liblinear
- import liblinearutil
+ from . import liblinear
+ from . import liblinearutil
except:
LIBLINEAR = False
\ No newline at end of file
