Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jitingxu1 committed Aug 26, 2024
1 parent 1d0281b commit 054a945
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ibis_ml/utils/_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ def train_test_split(
}
).mutate(
**{
train_flag: (_[combined_key] + random_str).hash().abs()
% num_buckets
train_flag: (_[combined_key] + random_str).hash().abs() % num_buckets
< int((1 - test_size) * num_buckets)
}
)
Expand Down

0 comments on commit 054a945

Please sign in to comment.