Skip to content

Commit

Permalink
Correction of the logical expression
Browse files Browse the repository at this point in the history
  • Loading branch information
aPovidlo committed Jul 23, 2024
1 parent 83328db commit 8cbb7cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/unit/data/test_data_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,8 @@ def test_default_train_test_simple(data_generator: Callable, expected_output: di
assert train_data.features.shape == expected_output['train_features_size']
assert test_data.features.shape == expected_output['test_features_size']
assert tuple(test_data.idx) == expected_output['test_idx']
if 'train_category_size' in expected_output:
if 'train_category_size' in expected_output and 'test_category_size' in expected_output:
assert train_data.categorical_features.shape == expected_output['train_category_size']
if 'train_category_size' in expected_output:
assert test_data.categorical_features.shape == expected_output['test_category_size']


Expand Down

0 comments on commit 8cbb7cb

Please sign in to comment.