review of min_C doc strings

This commit is contained in:
Paolo Losi 2011-04-11 22:04:53 +02:00
parent a0085eb042
commit 91de1c2a9d
2 changed files with 28 additions and 0 deletions

View File

@ -130,6 +130,20 @@ class LogisticRegression(BaseLibLinear, ClassifierMixin,
if C is greater that min_C there is at least one non-zero coefficient.
This value is valid if class_weight parameter in fit() is not set.
Parameters
----------
X : array-like, shape = [n_samples, n_features]
Training vector, where n_samples in the number of samples and
n_features is the number of features.
y : array-like, shape = [n_samples]
Target vector relative to X
Returns
-------
min_C: float
minimum value for C
"""
if self.penalty != 'l1':
raise ValueError('penalty is not l1')

View File

@ -119,6 +119,20 @@ class LogisticRegression(SparseBaseLibLinear, ClassifierMixin,
if C is greater that min_C there is at least one non-zero coefficient.
This value is valid if class_weight parameter in fit() is not set.
Parameters
----------
X : sparse matrix, shape = [n_samples, n_features]
Training vector, where n_samples in the number of samples and
n_features is the number of features.
y : array, shape = [n_samples]
Target vector relative to X
Returns
-------
min_C: float
minimum value for C
"""
if self.penalty != 'l1':
raise ValueError('penalty is not l1')