Skip to content

Commit

Permalink
fix scikit bug on mac os
Browse files Browse the repository at this point in the history
  • Loading branch information
QinbinLi committed Jun 10, 2018
1 parent 9963067 commit 3ebdf43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/thundersvmScikit.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
lib_path = path.join(dirname, '../build/lib/libthundersvm.so')
elif platform == "win32":
lib_path = path.join(dirname, '../build/bin/Debug/thundersvm.dll')
# elif platform == "darwin":
# lib_path = path.join(dirname, '../build/lib/libthundersvm.dylib')
elif platform == "darwin":
lib_path = path.join(dirname, '../build/lib/libthundersvm.dylib')
else :
print ("OS not supported!")
exit()
Expand Down Expand Up @@ -56,6 +56,7 @@ def __init__(self, kernel, degree,
self.n_jobs = n_jobs
self.random_state = random_state
self.max_mem_size = max_mem_size
thundersvm.model_new.restype = c_void_p
self.model = thundersvm.model_new(SVM_TYPE.index(self._impl))

def label_validate(self, y):
Expand Down

0 comments on commit 3ebdf43

Please sign in to comment.