Skip to content

Commit

Permalink
Move the Resplitter type definition to resplitter package
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-narozniak committed Nov 15, 2023
1 parent 93b8a3d commit cbc999e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
5 changes: 0 additions & 5 deletions datasets/flwr_datasets/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,3 @@
# limitations under the License.
# ==============================================================================
"""Common components in Flower Datasets."""


from .typing import Resplitter

__all__ = ["Resplitter"]
2 changes: 1 addition & 1 deletion datasets/flwr_datasets/federated_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

import datasets
from datasets import Dataset, DatasetDict
from flwr_datasets.common import Resplitter
from flwr_datasets.partitioner import Partitioner
from flwr_datasets.resplitter import Resplitter
from flwr_datasets.utils import (
_check_if_dataset_tested,
_instantiate_partitioners,
Expand Down
2 changes: 2 additions & 0 deletions datasets/flwr_datasets/resplitter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@


from .merge_resplitter import MergeResplitter
from .resplitter import Resplitter

__all__ = [
"MergeResplitter",
"Resplitter",
]
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Flower Datasets type definitions."""
"""Resplitter."""


from typing import Callable
Expand Down
2 changes: 1 addition & 1 deletion datasets/flwr_datasets/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import warnings
from typing import Dict, Optional, Tuple, Union, cast

from flwr_datasets.common import Resplitter
from flwr_datasets.partitioner import IidPartitioner, Partitioner
from flwr_datasets.resplitter import Resplitter
from flwr_datasets.resplitter.merge_resplitter import MergeResplitter

tested_datasets = [
Expand Down

0 comments on commit cbc999e

Please sign in to comment.