Skip to content

Commit

Permalink
Fix pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-narozniak committed Nov 10, 2023
1 parent d419afc commit 4316466
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions datasets/flwr_datasets/partitioner/iid_partitioner_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import unittest
from typing import Tuple

import numpy as np
from parameterized import parameterized

from datasets import Dataset
Expand Down Expand Up @@ -107,10 +106,10 @@ def test_load_partition_correct_data(
partition = partitioner.load_partition(partition_index)
row_id = 0
self.assertEqual(
partition["features"][row_id],
partition[row_id]["features"],
# Note it's contiguous so partition_size * partition_index gets the first
# element of the partition of partition_index
dataset["features"][partition_size * partition_index + row_id],
dataset[partition_size * partition_index + row_id]["features"],
)

@parameterized.expand( # type: ignore
Expand Down

0 comments on commit 4316466

Please sign in to comment.