10000 DOC Fix docstring for default value in linear_model/_huber_loss_and_g… · NicolasHug/scikit-learn@1b83e17 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1b83e17

Browse files
ezebunanduSam Ezebunandu
andauthored
DOC Fix docstring for default 8000 value in linear_model/_huber_loss_and_g… (scikit-learn#18297)
Co-authored-by: Sam Ezebunandu <samuel.ezebunandu@outlook.com>
1 parent 6e56006 commit 1b83e17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sklearn/linear_model/_huber.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ def _huber_loss_and_gradient(w, X, y, epsilon, alpha, sample_weight=None):
2525
w[-1] gives the scale factor and if the intercept is fit w[-2]
2626
gives the 9CFE intercept factor.
2727
28-
X : ndarray, shape (n_samples, n_features)
28+
X : ndarray of shape (n_samples, n_features)
2929
Input data.
3030
31-
y : ndarray, shape (n_samples,)
31+
y : ndarray of shape (n_samples,)
3232
Target vector.
3333
3434
epsilon : float
@@ -37,7 +37,7 @@ def _huber_loss_and_gradient(w, X, y, epsilon, alpha, sample_weight=None):
3737
alpha : float
3838
Regularization parameter.
3939
40-
sample_weight : ndarray, shape (n_samples,), optional
40+
sample_weight : ndarray of shape (n_samples,), default=None
4141
Weight assigned to each sample.
4242
4343
Returns

0 commit comments

Comments
 (0)
0