Skip to content

Commit

Permalink
modified: mlxtend/preprocessing/tests/test_transactionencoder.py
Browse files Browse the repository at this point in the history
	- Updated failing unit test to compare output directly instead of converting to numpy arrays (which results in errors unless the dtype is set to object).
  • Loading branch information
it176131 committed Mar 30, 2024
1 parent 473888a commit 3e9e238
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mlxtend/preprocessing/tests/test_transactionencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ def test_fit_transform():
def test_inverse_transform():
oht = TransactionEncoder()
oht.fit(dataset)
np.testing.assert_array_equal(
np.array(data_sorted), np.array(oht.inverse_transform(expect))
)
assert data_sorted == oht.inverse_transform(expect)


def test_cloning():
Expand Down

0 comments on commit 3e9e238

Please sign in to comment.