Skip to content

Commit 77fe0a3

Browse files
committed
[Fork from #105] Made CrossValFuncs and HoldOutFuncs class to group the functions
1 parent 298096a commit 77fe0a3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

autoPyTorch/datasets/resampling_strategy.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,6 @@ def get_validators(*choices: CrossValFunc):
150150
"""TODO: to be compatible, it is here now, but will be deprecated soon."""
151151
return {choice.name: choice.value for choice in choices}
152152

153-
def is_stratified(self) -> bool:
154-
stratified = [self.stratified_k_fold_cross_validation,
155-
self.stratified_shuffle_split_cross_validation]
156-
return getattr(self, self.name) in stratified
157-
158153

159154
class HoldoutValTypes(Enum):
160155
"""The type of hold out validation (refer to CrossValTypes' doc-string)"""

0 commit comments

Comments
 (0)