Skip to content

Commit

Permalink
Docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Pedregosa authored and MechCoder committed Jul 22, 2014
1 parent 4cb2d93 commit 582d782
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sklearn/linear_model/logistic.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,16 +472,19 @@ class LogisticRegressionCV(BaseEstimator, LinearClassifierMixin,
Parameters
----------
Cs : list of floats, integer
Cs: list of floats, integer
Each of the values in Cs describes the inverse of regularization
strength and must be a positive float.
Like in support vector machines, smaller values specify stronger
regularization.
fit_intercept : bool, default: True
fit_intercept: bool, default: True
Specifies if a constant (a.k.a. bias or intercept) should be
added the decision function.
max_iter: integer, optional
Maximum number of iterations of the optimization algorithm.
tol: float, optional
Tolerance for stopping criteria.
Expand Down Expand Up @@ -583,7 +586,7 @@ def fit(self, X, y):
w = logistic_regression_path(
X, y, Cs=[self.C_], fit_intercept=self.fit_intercept,
coef=coef_init, solver=self.solver, max_iter=self.max_iter,
gtol=self.gtol, verbose=max(0, self.verbose-1))
gtol=self.gtol, verbose=max(0, self.verbose - 1))
w = w[0]
if self.fit_intercept:
self.coef_ = w[:-1]
Expand Down

0 comments on commit 582d782

Please sign in to comment.