Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb77f35

Browse files
author
ArturoAmorQ
committed
Format code with pre-commit config
1 parent 553143d commit eb77f35

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

sklearn/linear_model/_ridge.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,13 @@ def _ridge_regression(
567567
)
568568

569569
if alpha.size == 1:
570-
alpha[0] = check_scalar(alpha[0], "alpha", target_type=numbers.Real,
571-
min_val=0.0, include_boundaries="left")
570+
alpha[0] = check_scalar(
571+
alpha[0],
572+
"alpha",
573+
target_type=numbers.Real,
574+
min_val=0.0,
575+
include_boundaries="left",
576+
)
572577
if n_targets > 1:
573578
alpha = np.repeat(alpha, n_targets)
574579

0 commit comments

Comments
 (0)