Skip to content

Commit

Permalink
fix rounding between versions
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Palazzo committed Jun 24, 2024
1 parent ff527ae commit 742699b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from unittest.mock import Mock

import numpy as np
from tqdm import tqdm

from sdmetrics.demos import load_demo
Expand All @@ -17,7 +18,7 @@ def test_end_to_end(self):
result = column_pair_trends.get_score(real_data, synthetic_data, metadata)

# Assert
assert result == 0.4565462958352109
assert np.isclose(result, 0.45654629583521095, atol=1e-8)

def test_with_progress_bar(self):
"""Test that the progress bar is correctly updated."""
Expand All @@ -37,5 +38,5 @@ def test_with_progress_bar(self):
result = column_pair_trends.get_score(real_data, synthetic_data, metadata, progress_bar)

# Assert
assert result == 0.4565462958352109
assert np.isclose(result, 0.45654629583521095, atol=1e-8)
assert mock_update.call_count == num_iter

0 comments on commit 742699b

Please sign in to comment.