Skip to content

Commit 0a898c3

Browse files
author
Fabian Pedregosa
committed
More low-level refactoring.
1 parent 724a426 commit 0a898c3

File tree

4 files changed

+1000
-875
lines changed

4 files changed

+1000
-875
lines changed

scikits/learn/svm/base.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ def predict(self, X):
174174

175175
svm_type = LIBSVM_IMPL.index(self.impl)
176176
return libsvm.predict(
177-
X, self.support_, self.support_vectors_, self.dual_coef_,
178-
self.n_support_, self.intercept_,
177+
X, self.support_, self.support_vectors_, self.n_support_,
178+
self.dual_coef_, self.intercept_,
179179
self.label_, self.probA_, self.probB_,
180180
svm_type=svm_type, **self._get_params())
181181

@@ -213,9 +213,9 @@ def predict_proba(self, X):
213213

214214
svm_type = LIBSVM_IMPL.index(self.impl)
215215
pprob = libsvm.predict_proba(
216-
X, self.support_vectors_, self.dual_coef_,
217-
self.intercept_, self.n_support_, self.support_,
218-
self.label_, self.probA_, self.probB_,
216+
X, self.support_, self.support_vectors_, self.n_support_,
217+
self.dual_coef_, self.intercept_, self.label_,
218+
self.probA_, self.probB_,
219219
svm_type=svm_type, **self._get_params())
220220

221221
return pprob
@@ -263,9 +263,9 @@ def decision_function(self, X):
263263
X = self._compute_kernel(X)
264264

265265
dec_func = libsvm.decision_function(
266-
X, self.support_vectors_, self.dual_coef_,
267-
self.intercept_, self.n_support_, self.support_,
268-
self.label_, self.probA_, self.probB_,
266+
X, self.support_, self.support_vectors_, self.n_support_,
267+
self.dual_coef_, self.intercept_, self.label_,
268+
self.probA_, self.probB_,
269269
svm_type=LIBSVM_IMPL.index(self.impl),
270270
**self._get_params())
271271

0 commit comments

Comments
 (0)