Skip to content

Commit

Permalink
update tests to support both 2023.0.1 and later versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuber21 committed Mar 24, 2023
1 parent b0653fc commit cc22197
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion daal4py/sklearn/ensemble/tests/test_decision_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

ACCURACY_RATIO = 0.95 if daal_check_version((2021, 'P', 400)) else 0.85
MSE_RATIO = 1.07
if daal_check_version((2023, 'P', 100)):
if daal_check_version((2023, 'P', 101)):
LOG_LOSS_RATIO = 1.5
elif daal_check_version((2021, 'P', 400)):
LOG_LOSS_RATIO = 1.4
Expand Down
6 changes: 4 additions & 2 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,11 @@ def test_svm_batch(self):
('decision_forest_regression_hist_batch',
'decision_forest_regression_batch.csv', lambda r: r[1].prediction, (2023, 'P', 1)),
('decision_forest_regression_default_dense_batch',
'decision_forest_regression_batch_20230101.csv', lambda r: r[1].prediction, (2023, 'P', 100)),
'decision_forest_regression_batch_20230101.csv',
lambda r: r[1].prediction, (2023, 'P', 101)),
('decision_forest_regression_hist_batch',
'decision_forest_regression_batch_20230101.csv', lambda r: r[1].prediction, (2023, 'P', 100)),
'decision_forest_regression_batch_20230101.csv',
lambda r: r[1].prediction, (2023, 'P', 101)),
('decision_tree_classification_batch', 'decision_tree_classification_batch.csv',
lambda r: r[1].prediction),
('decision_tree_regression_batch', 'decision_tree_regression_batch.csv',
Expand Down

0 comments on commit cc22197

Please sign in to comment.