Skip to content

Commit

Permalink
Fix knn & rf tests for 2020u3 (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrovKP authored Dec 25, 2020
1 parent ff0e104 commit df1d2a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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 @@ -32,7 +32,7 @@
import RandomForestRegressor as DaalRandomForestRegressor

N_TRIES = 10
ACCURACY_RATIO = 0.8
ACCURACY_RATIO = 0.7
MSE_RATIO = 1.42
LOG_LOSS_RATIO = 2.28
ROC_AUC_RATIO = 0.978
Expand Down
3 changes: 2 additions & 1 deletion daal4py/sklearn/neighbors/tests/test_kneighbors.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@
from sklearn.datasets import (load_iris, make_classification)
from sklearn.metrics import (accuracy_score, log_loss, roc_auc_score)
from sklearn.model_selection import train_test_split
from daal4py.sklearn._utils import daal_check_version

DISTANCES = ['minkowski']
ALGORITHMS = ['brute', 'kd_tree', 'auto']
WEIGHTS = ['uniform', 'distance']
KS = [1, 3, 7, 15, 31]
N_TRIES = 10
ACCURACY_RATIO = 1.0
ACCURACY_RATIO = 1.0 if daal_check_version(((2020, 'P', 300))) else 0.9
LOG_LOSS_RATIO = 1.00145
ROC_AUC_RATIO = 0.999
IRIS = load_iris()
Expand Down

0 comments on commit df1d2a7

Please sign in to comment.