Open camlspotter opened 1 month ago
It looks like a copy https://pypi.org/project/libsvm/ . Why this is required? Cannot we install the official libsvm instead?
infer_ha.test_svm of run_tests
fails out of the box:
======================================================================
ERROR: infer_ha.test_svm (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: infer_ha.test_svm
Traceback (most recent call last):
File "/home/jun/.pyenv/versions/3.8.19/lib/python3.8/unittest/loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "/home/jun/.pyenv/versions/3.8.19/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
__import__(name)
File "/home/jun/hal/learnHA/infer_ha/test_svm.py", line 4, in <module>
from libsvm.svmutil import svm_train, svm_predict, svm_problem, svm_parameter
ModuleNotFoundError: No module named 'libsvm'
infer_ha/
has a copy of libsvm
but not properly loaded at tests. Weird...
I concluded that tests use different versions of libsvm!
This is unsettling to me: