Skip to content

Commit

Permalink
Fix formatting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-narozniak committed Feb 16, 2024
1 parent d5c22e5 commit cdfedfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datasets/flwr_datasets/resplitter/divide_resplitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def __call__(self, dataset: DatasetDict) -> DatasetDict:
self._check_duplicate_splits_in_config_and_original_dataset(dataset_splits)
return self.resplit(dataset)

# pylint: disable=too-many-branches
def resplit(self, dataset: DatasetDict) -> DatasetDict:
"""Resplit the dataset according to the configuration."""
resplit_dataset = {}
Expand All @@ -105,8 +106,7 @@ def resplit(self, dataset: DatasetDict) -> DatasetDict:
"dataset with more than one split you need to specify the "
"`divide_split` but given None instead."
)
else:
self._divide_split = dataset_splits[0]
self._divide_split = dataset_splits[0]
self._multiple_splits_config = cast(
Union[Dict[str, Dict[str, float]], Dict[str, Dict[str, int]]],
{self._divide_split: self._single_split_config},
Expand Down

0 comments on commit cdfedfd

Please sign in to comment.