Skip to content

Commit

Permalink
Fixed tests for Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
denysgerasymuk799 committed Sep 14, 2024
1 parent c03b5d5 commit e043c38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 40 deletions.

This file was deleted.

This file was deleted.

5 changes: 3 additions & 2 deletions tests/user_interfaces/test_multiple_models_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,6 @@ def test_compute_metrics_with_config_should_equal_prev_release_results(law_schoo
metrics_dct['LogisticRegression'] = metrics_dct['LogisticRegression'].drop('Runtime_in_Mins', axis=1)
metrics_dct['DecisionTreeClassifier'] = metrics_dct['DecisionTreeClassifier'].drop('Runtime_in_Mins', axis=1)

assert compare_metric_dfs_with_tolerance(expected_metrics_dct['LogisticRegression'], metrics_dct['LogisticRegression'])
assert compare_metric_dfs_with_tolerance(expected_metrics_dct['DecisionTreeClassifier'], metrics_dct['DecisionTreeClassifier'])
tolerance = 1e-4 if sys.version_info.major == 3 and sys.version_info.minor == 11 else 1e-6
assert compare_metric_dfs_with_tolerance(expected_metrics_dct['LogisticRegression'], metrics_dct['LogisticRegression'], tolerance)
assert compare_metric_dfs_with_tolerance(expected_metrics_dct['DecisionTreeClassifier'], metrics_dct['DecisionTreeClassifier'], tolerance)

0 comments on commit e043c38

Please sign in to comment.