Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
Make the *other* scaler test also more robust (#1123)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmke8 authored May 28, 2024
2 parents 6664e95 + 7f3c696 commit 344bfeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/data/dataset_modification_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_scaling(

datatuple_post, _ = scale_continuous(dataset, datatuple_scaled, scaler2, inverse=True)

pd.testing.assert_frame_equal(datatuple.x, datatuple_post.x, check_dtype=False)
np.testing.assert_allclose(datatuple.x.to_numpy(), datatuple_post.x.to_numpy(), atol=1e-7)


@pytest.mark.parametrize("dataset_name", available_tabular())
Expand Down

0 comments on commit 344bfeb

Please sign in to comment.