Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
nzw0301 committed Aug 15, 2024
1 parent e897abb commit 22f97fe
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions optuna_integration/sklearn/sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from numbers import Number
from time import time
from typing import Any
from typing import List
from typing import Union
import warnings

Expand Down Expand Up @@ -50,11 +51,11 @@
if not _imports.is_successful():
BaseEstimator = object # NOQA

ArrayLikeType = Union[list, np.ndarray, "pd.Series", "spmatrix"]
OneDimArrayLikeType = Union[list[float], np.ndarray, "pd.Series"]
TwoDimArrayLikeType = Union[list[list[float]], np.ndarray, "pd.DataFrame", "spmatrix"]
IterableType = Union[list, "pd.DataFrame", np.ndarray, "pd.Series", "spmatrix", None]
IndexableType = Iterable | None
ArrayLikeType = Union[List, np.ndarray, "pd.Series", "spmatrix"]
OneDimArrayLikeType = Union[List[float], np.ndarray, "pd.Series"]
TwoDimArrayLikeType = Union[List[List[float]], np.ndarray, "pd.DataFrame", "spmatrix"]
IterableType = Union[List, "pd.DataFrame", np.ndarray, "pd.Series", "spmatrix", None]
IndexableType = Union[Iterable, None]

_logger = logging.get_logger(__name__)

Expand Down

0 comments on commit 22f97fe

Please sign in to comment.