Skip to content

Commit

Permalink
Reformat examples
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-narozniak committed Apr 3, 2024
1 parent e429a70 commit 8ad843f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/xgboost-comprehensive/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ def instantiate_partitioner(partitioner_type: str, num_partitions: int):

def train_test_split(partition: Dataset, test_fraction: float, seed: int):
"""Split the data into train and validation set given split rate."""
train_test = partition.train_test_split(
test_size=test_fraction, seed=seed, shuffle=False
)
train_test = partition.train_test_split(test_size=test_fraction, seed=seed)
partition_train = train_test["train"]
partition_test = train_test["test"]

Expand Down

0 comments on commit 8ad843f

Please sign in to comment.