8000 Cosmetic changes in decision_function. · seckcoder/scikit-learn@62bcf5b · GitHub
[go: up one dir, main page]

Skip to content

Commit 62bcf5b

Browse files
author
Fabian Pedregosa
committed
Cosmetic changes in decision_function.
1 parent 16dc776 commit 62bcf5b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

scikits/learn/svm/base.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -425,14 +425,10 @@ def decision_function(self, X):
425425
X = np.atleast_2d(np.asanyarray(X, dtype=np.float64, order='C'))
426426
self._check_n_features(X)
427427

428-
coef = self.raw_coef_
429-
430-
dec_func = _liblinear.decision_function_wrap(X, coef,
431-
self._get_solver_type(),
432-
self.eps, self.C,
433-
self.class_weight_label,
434-
self.class_weight, self.label_,
435-
self._get_bias())
428+
dec_func = _liblinear.decision_function_wrap(
429+
X, self.raw_coef_, self._get_solver_type(), self.eps,
430+
self.C, self.class_weight_label, self.class_weight,
431+
self.label_, self._get_bias())
436432

437433
if len(self.label_) <= 2:
438434
# in the two-class case, the decision sign needs be flipped

0 commit comments

Comments
 (0)
0