Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 28, 2024
1 parent f627e42 commit 9b7059a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
1 change: 1 addition & 0 deletions src/sparselm/model/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Classes implementing generalized linear regression Regressors."""

from ._adaptive_lasso import (
AdaptiveGroupLasso,
AdaptiveLasso,
Expand Down
25 changes: 15 additions & 10 deletions src/sparselm/model/_adaptive_lasso.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ def __init__(
max_iter: int = 3,
eps: float = 1e-6,
tol: float = 1e-10,
update_function: Callable[[NDArray[np.floating], float], ArrayLike]
| None = None,
update_function: (
Callable[[NDArray[np.floating], float], ArrayLike] | None
) = None,
fit_intercept: bool = False,
copy_X: bool = True,
warm_start: bool = True,
Expand Down Expand Up @@ -310,8 +311,9 @@ def __init__(
max_iter: int = 3,
eps: float = 1e-6,
tol: float = 1e-10,
update_function: Callable[[NDArray[np.floating], float], ArrayLike]
| None = None,
update_function: (
Callable[[NDArray[np.floating], float], ArrayLike] | None
) = None,
standardize: bool = False,
fit_intercept: bool = False,
copy_X: bool = True,
Expand Down Expand Up @@ -457,8 +459,9 @@ def __init__(
max_iter: int = 3,
eps: float = 1e-6,
tol: float = 1e-10,
update_function: Callable[[NDArray[np.floating], float], ArrayLike]
| None = None,
update_function: (
Callable[[NDArray[np.floating], float], ArrayLike] | None
) = None,
standardize: bool = False,
fit_intercept: bool = False,
copy_X: bool = True,
Expand Down Expand Up @@ -606,8 +609,9 @@ def __init__(
max_iter: int = 3,
eps: float = 1e-6,
tol: float = 1e-10,
update_function: Callable[[NDArray[np.floating], float], ArrayLike]
| None = None,
update_function: (
Callable[[NDArray[np.floating], float], ArrayLike] | None
) = None,
standardize: bool = False,
fit_intercept: bool = False,
copy_X: bool = True,
Expand Down Expand Up @@ -808,8 +812,9 @@ def __init__(
max_iter: int = 3,
eps: float = 1e-6,
tol: float = 1e-10,
update_function: Callable[[NDArray[np.floating], float], ArrayLike]
| None = None,
update_function: (
Callable[[NDArray[np.floating], float], ArrayLike] | None
) = None,
standardize: bool = False,
fit_intercept: bool = False,
copy_X: bool = True,
Expand Down
1 change: 0 additions & 1 deletion src/sparselm/model/_miqp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""MIQP based regression Regressors."""


from ._best_subset import BestSubsetSelection, RidgedBestSubsetSelection
from ._regularized_l0 import L1L0, L2L0, RegularizedL0

Expand Down
1 change: 1 addition & 0 deletions tests/test_stepwise.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test composite estimator class."""

import numpy as np
import numpy.testing as npt
import pytest
Expand Down

0 comments on commit 9b7059a

Please sign in to comment.