diff --git a/scikits/learn/svm/base.py b/scikits/learn/svm/base.py index 7e1da0ba3526ec325b63fd3091e5dc10de782a31..3be7947c743688e23d5b103bcfbc0e0d79ef3a8a 100644 --- a/scikits/learn/svm/base.py +++ b/scikits/learn/svm/base.py @@ -425,14 +425,10 @@ class BaseLibLinear(BaseEstimator): X = np.atleast_2d(np.asanyarray(X, dtype=np.float64, order='C')) self._check_n_features(X) - coef = self.raw_coef_ - - dec_func = _liblinear.decision_function_wrap(X, coef, - self._get_solver_type(), - self.eps, self.C, - self.class_weight_label, - self.class_weight, self.label_, - self._get_bias()) + dec_func = _liblinear.decision_function_wrap( + X, self.raw_coef_, self._get_solver_type(), self.eps, + self.C, self.class_weight_label, self.class_weight, + self.label_, self._get_bias()) if len(self.label_) <= 2: # in the two-class case, the decision sign needs be flipped