diff --git a/sklearn/svm/base.py b/sklearn/svm/base.py index ee0e062ee66..f40e9063080 100644 --- a/sklearn/svm/base.py +++ b/sklearn/svm/base.py @@ -179,7 +179,7 @@ class BaseLibSVM(six.with_metaclass(ABCMeta, BaseEstimator)): self.shape_fit_ = X.shape # In binary case, we need to flip the sign of coef, intercept and - # decision function. Use self._intercept_ internally. + # decision function. Use self._intercept_ and self._dual_coef_ internally. self._intercept_ = self.intercept_.copy() self._dual_coef_ = self.dual_coef_ if self._impl in ['c_svc', 'nu_svc'] and len(self.classes_) == 2: