Skip to content

Commit d09dfcc

Browse files
committed
fixed flake8 issues in three files
1 parent 6635b3b commit d09dfcc

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

autoPyTorch/datasets/base_dataset.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
from autoPyTorch.constants import CLASSIFICATION_OUTPUTS, STRING_TO_OUTPUT_TYPES
1515
from autoPyTorch.datasets.resampling_strategy import (
16+
CrossValFunc,
1617
CrossValFuncs,
1718
CrossValTypes,
18-
CrossValFunc,
1919
DEFAULT_RESAMPLING_PARAMETERS,
20+
HoldOutFunc,
2021
HoldoutValTypes,
21-
HoldOutFuncs,
22-
HoldOutFunc
22+
HoldOutFuncs
2323
)
2424
from autoPyTorch.utils.common import FitRequirement, hash_array_or_matrix
2525

autoPyTorch/datasets/resampling_strategy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def stratified_holdout_validation(val_share: float, indices: np.ndarray, **kwarg
113113
return train, val
114114

115115
@classmethod
116-
def get_holdout_validators(cls, *holdout_val_types: Tuple[HoldoutValTypes]) -> Dict[str, HoldOutFunc]:
116+
def get_holdout_validators(cls, *holdout_val_types: HoldoutValTypes) -> Dict[str, HoldOutFunc]:
117117

118118
holdout_validators = {
119119
holdout_val_type.name: getattr(cls, holdout_val_type.name)

autoPyTorch/datasets/time_series_dataset.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
from autoPyTorch.datasets.base_dataset import BaseDataset
88
from autoPyTorch.datasets.resampling_strategy import (
9-
CrossValTypes,
10-
HoldoutValTypes,
119
CrossValFuncs,
12-
HoldOutFuncs
10+
HoldOutFuncs,
11+
CrossValTypes,
12+
HoldoutValTypes
1313
)
1414

1515
TIME_SERIES_FORECASTING_INPUT = Tuple[np.ndarray, np.ndarray] # currently only numpy arrays are supported

0 commit comments

Comments
 (0)