Skip to content

Commit

Permalink
fixed flake8 issues in three files
Browse files Browse the repository at this point in the history
  • Loading branch information
nabenabe0928 committed Mar 9, 2021
1 parent 6635b3b commit d09dfcc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions autoPyTorch/datasets/base_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

from autoPyTorch.constants import CLASSIFICATION_OUTPUTS, STRING_TO_OUTPUT_TYPES
from autoPyTorch.datasets.resampling_strategy import (
CrossValFunc,
CrossValFuncs,
CrossValTypes,
CrossValFunc,
DEFAULT_RESAMPLING_PARAMETERS,
HoldOutFunc,
HoldoutValTypes,
HoldOutFuncs,
HoldOutFunc
HoldOutFuncs
)
from autoPyTorch.utils.common import FitRequirement, hash_array_or_matrix

Expand Down
2 changes: 1 addition & 1 deletion autoPyTorch/datasets/resampling_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def stratified_holdout_validation(val_share: float, indices: np.ndarray, **kwarg
return train, val

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

holdout_validators = {
holdout_val_type.name: getattr(cls, holdout_val_type.name)
Expand Down
6 changes: 3 additions & 3 deletions autoPyTorch/datasets/time_series_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

from autoPyTorch.datasets.base_dataset import BaseDataset
from autoPyTorch.datasets.resampling_strategy import (
CrossValTypes,
HoldoutValTypes,
CrossValFuncs,
HoldOutFuncs
HoldOutFuncs,
CrossValTypes,
HoldoutValTypes
)

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

0 comments on commit d09dfcc

Please sign in to comment.