8000 MAINT Fix typo in parameter name input_dtye -> input_dtype (#29259) · scikit-learn/scikit-learn@3c9930b · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c9930b

Browse files
authored
MAINT Fix typo in parameter name input_dtye -> input_dtype (#29259)
1 parent 2ff74a8 commit 3c9930b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sklearn/linear_model/_stochastic_gradient.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,12 @@ def loss_function_(self):
332332
return self._loss_function_
333333

334334

335-
def _prepare_fit_binary(est, y, i, input_dtye):
335+
def _prepare_fit_binary(est, y, i, input_dtype):
336336
"""Initialization for fit_binary.
337337
338338
Returns y, coef, intercept, average_coef, average_intercept.
339339
"""
340-
y_i = np.ones(y.shape, dtype=input_dtye, order="C")
340+
y_i = np.ones(y.shape, dtype=input_dtype, order="C")
341341
y_i[y != est.classes_[i]] = -1.0
342342
average_intercept = 0
343343
average_coef = None
@@ -432,7 +432,7 @@ def fit_binary(
432432
# if average is not true, average_coef, and average_intercept will be
433433
# unused
434434
y_i, coef, intercept, average_coef, average_intercept = _prepare_fit_binary(
435-
est, y, i, input_dtye=X.dtype
435+
est, y, i, input_dtype=X.dtype
436436
)
437437
assert y_i.shape[0] == y.shape[0] == sample_weight.shape[0]
438438

0 commit comments

Comments
 (0)
0