-
Notifications
You must be signed in to change notification settings - Fork 185
Expand file tree
/
Copy pathdeselected_tests.yaml
More file actions
executable file
·621 lines (525 loc) · 41.7 KB
/
deselected_tests.yaml
File metadata and controls
executable file
·621 lines (525 loc) · 41.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
#===============================================================================
# Copyright 2020 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#===============================================================================
# This file lists node ids (following pytest format) of scikit-learn tests
# that are to be deselected during the test discovery step.
#
# Deselection can be predicated on the version of scikit-learn used.
# Use - node_id cond, or - node_id cond1,cond2 where cond is OPver.
# Supported OPs are >=, <=, ==, !=, >, <
# For example,
# - tests/test_isotonic.py::test_permutation_invariance >0.18,<=0.19
# will exclude deselection in versions 0.18.1, and 0.18.2 only.
deselected_tests:
# sklearn 1.6 unsupported features
- linear_model/tests/test_base.py::test_linear_regression_sample_weight_consistency[42-True-None-X_shape1]
- linear_model/tests/test_base.py::test_linear_regression_sample_weight_consistency[42-True-None-X_shape2]
- linear_model/tests/test_ridge.py::test_ridge_shapes_type
- linear_model/tests/test_ridge.py::test_ridge_cv_results_predictions[2-False-False]
- linear_model/tests/test_ridge.py::test_ridge_cv_results_predictions[2-False-True]
# sklearn 1.7 unsupported features
- tests/test_common.py::test_estimators[LinearRegression()-check_sample_weight_equivalence_on_dense_data]
# Array API support
# numpy.array_api was experimental and its use in sklearn was not official
- decomposition/tests/test_pca.py::test_pca_array_api_compliance[PCA(n_components=2,svd_solver='full')-check_array_api_input_and_values-numpy.array_api-None-None] <1.5
- decomposition/tests/test_pca.py::test_pca_array_api_compliance[PCA(n_components=2,svd_solver='full')-check_array_api_get_precision-numpy.array_api-None-None] <1.5
- decomposition/tests/test_pca.py::test_pca_array_api_compliance[PCA(n_components=0.1,svd_solver='full',whiten=True)-check_array_api_input_and_values-numpy.array_api-None-None] <1.5
- decomposition/tests/test_pca.py::test_pca_array_api_compliance[PCA(n_components=0.1,svd_solver='full',whiten=True)-check_array_api_get_precision-numpy.array_api-None-None] <1.5
- decomposition/tests/test_pca.py::test_pca_mle_array_api_compliance[PCA(n_components='mle',svd_solver='full')-check_array_api_get_precision-numpy.array_api-None-None] <1.5
# `train_test_split` inconsistency for Array API inputs.
- model_selection/tests/test_split.py::test_array_api_train_test_split[True-None-array_api_strict-None-None]
- model_selection/tests/test_split.py::test_array_api_train_test_split[True-stratify1-array_api_strict-None-None]
- model_selection/tests/test_split.py::test_array_api_train_test_split[False-None-array_api_strict-None-None]
- model_selection/tests/test_split.py::test_array_api_train_test_split[True-None-torch-cpu-float64]
- model_selection/tests/test_split.py::test_array_api_train_test_split[True-None-torch-cpu-float32]
- model_selection/tests/test_split.py::test_array_api_train_test_split[True-stratify1-torch-cpu-float64]
- model_selection/tests/test_split.py::test_array_api_train_test_split[True-stratify1-torch-cpu-float32]
- model_selection/tests/test_split.py::test_array_api_train_test_split[False-None-torch-cpu-float64]
- model_selection/tests/test_split.py::test_array_api_train_test_split[False-None-torch-cpu-float32]
- model_selection/tests/test_split.py::test_array_api_train_test_split[True-None-array_api_strict-device1-float32]
- model_selection/tests/test_split.py::test_array_api_train_test_split[True-stratify1-array_api_strict-device1-float32]
- model_selection/tests/test_split.py::test_array_api_train_test_split[False-None-array_api_strict-device1-float32]
- model_selection/tests/test_split.py::test_array_api_train_test_split[True-None-numpy.array_api-None-None]
- model_selection/tests/test_split.py::test_array_api_train_test_split[True-stratify1-numpy.array_api-None-None]
- model_selection/tests/test_split.py::test_array_api_train_test_split[False-None-numpy.array_api-None-None]
# Ridge regression. Array API functionally supported for all solvers. Not raising error for non-svd solvers.
- linear_model/tests/test_ridge.py::test_array_api_error_and_warnings_for_solver_parameter[array_api_strict]
- linear_model/tests/test_ridge.py::test_array_api_error_and_warnings_for_solver_parameter[torch]
# RidgeClassifier passes Array to xp.full() fill_value instead of Python scalar (sklearn bug with array_api_strict)
- linear_model/tests/test_ridge.py::test_ridge_array_api_compliance[RidgeClassifier(solver='svd')-check_array_api_attributes-array_api_strict-CPU_DEVICE-float64] >=1.8,<1.9
- linear_model/tests/test_ridge.py::test_ridge_array_api_compliance[RidgeClassifier(solver='svd')-check_array_api_attributes-array_api_strict-device1-float32] >=1.8,<1.9
- linear_model/tests/test_ridge.py::test_ridge_classifier_multilabel_array_api[array_api_strict-CPU_DEVICE-float64-estimator0] >=1.8,<1.9
- linear_model/tests/test_ridge.py::test_ridge_classifier_multilabel_array_api[array_api_strict-device1-float32-estimator0] >=1.8,<1.9
# 'kulsinski' distance was deprecated in scipy 1.11 but still marked as supported in scikit-learn < 1.3
- neighbors/tests/test_neighbors.py::test_kneighbors_brute_backend[float64-kulsinski] <1.3
- neighbors/tests/test_neighbors.py::test_radius_neighbors_brute_backend[kulsinski] <1.3
# wminkowski removed in scipy 1.8 but sklearn <1.2 NearestNeighbors._fit() lacks kd_tree + weighted minkowski check
- neighbors/tests/test_neighbors.py::test_neighbors_metrics <1.2
# scipy 1.10 and sklearn 1.0 incompatibilities lead to 1D sparse slices NotImplementedError
- svm/tests/test_sparse.py::test_unsorted_indices <1.2
- svm/tests/test_sparse.py::test_sparse_decision_function <1.2
- feature_selection/tests/test_rfe.py::test_rfe <1.2
- feature_selection/tests/test_rfe.py::test_rfecv <1.2
# sklearnex PCA always chooses "covariance_eigh" solver instead of "full" when solver="auto"
# resulting in solver assignment check failure for sklearn version >= 1.5
- decomposition/tests/test_pca.py::test_pca_svd_solver_auto[1000-500-400-full] >=1.5
- decomposition/tests/test_pca.py::test_pca_svd_solver_auto[1000-500-0.5-full] >=1.5
- decomposition/tests/test_pca.py::test_pca_svd_solver_auto[10-50-5-full] >=1.5
# Non-critical, but there are significant differences due to different implementations
- linear_model/tests/test_common.py::test_balance_property[42-True-LinearRegression]
- neighbors/tests/test_lof.py::test_lof_dtype_equivalence[0.5-True-brute]
- neighbors/tests/test_lof.py::test_lof_dtype_equivalence[auto-True-brute]
# Same as above but for visual studio builds (previously a deselection for macOS)
- neighbors/tests/test_lof.py::test_lof_dtype_equivalence[0.5-True-auto] >=1.2 win32
- neighbors/tests/test_lof.py::test_lof_dtype_equivalence[0.5-True-ball_tree] >=1.2 win32
- neighbors/tests/test_lof.py::test_lof_dtype_equivalence[0.5-True-kd_tree] >=1.2 win32
- neighbors/tests/test_lof.py::test_lof_dtype_equivalence[auto-True-auto] >=1.2 win32
- neighbors/tests/test_lof.py::test_lof_dtype_equivalence[auto-True-ball_tree] >=1.2 win32
- neighbors/tests/test_lof.py::test_lof_dtype_equivalence[auto-True-kd_tree] >=1.2 win32
# Sklearnex RandomForestClassifier RNG is different from scikit-learn and daal4py
# resulting in different feature importances for small number of trees (10).
# Issue disappears with bigger number of trees (>=20)
- inspection/tests/test_permutation_importance.py::test_permutation_importance_correlated_feature_regression_pandas[0.5-1]
- inspection/tests/test_permutation_importance.py::test_permutation_importance_correlated_feature_regression_pandas[0.5-2]
- inspection/tests/test_permutation_importance.py::test_permutation_importance_correlated_feature_regression_pandas[1.0-1]
- inspection/tests/test_permutation_importance.py::test_permutation_importance_correlated_feature_regression_pandas[1.0-2]
# TODO: add support of subset invariance to SVM
- tests/test_common.py::test_estimators[SVC()-check_methods_subset_invariance]
- tests/test_common.py::test_estimators[NuSVC()-check_methods_subset_invariance]
- tests/test_common.py::test_estimators[SVR()-check_methods_subset_invariance]
- tests/test_common.py::test_estimators[NuSVR()-check_methods_subset_invariance]
# SVR.fit fails when input is two samples of one class
- preprocessing/tests/test_data.py::test_cv_pipeline_precomputed
# KDtree kNN rarely misses 0-distance points when kneighbors is used on same-fitting data
- manifold/tests/test_spectral_embedding.py::test_precomputed_nearest_neighbors_filtering
# Cache directory is not accessible on some systems
- utils/tests/test_validation.py::test_check_memory
# oneDAL doesn't throw error if resulting coeffs are not finite
- linear_model/tests/test_coordinate_descent.py::test_enet_nonfinite_params
- svm/tests/test_svm.py::test_svc_nonfinite_params
# Different exception types in scikit-learn-intelex and scikit-learn
- utils/tests/test_validation.py::test_check_array_links_to_imputer_doc_only_for_X[asarray-X]
- utils/tests/test_validation.py::test_check_array_links_to_imputer_doc_only_for_X[csr_matrix-X]
# TODO: investigate copy failure of read-only buffer
- linear_model/tests/test_coordinate_descent.py::test_read_only_buffer
# Difference between scikit-learn and scikit-learn-intelex methods of kNN
- neighbors/tests/test_neighbors.py::test_unsupervised_kneighbors[float64-euclidean-True-1000-5-100-1]
- neighbors/tests/test_neighbors.py::test_unsupervised_kneighbors[float64-minkowski-True-1000-5-100-1]
- neighbors/tests/test_neighbors.py::test_unsupervised_kneighbors[float64-l2-True-1000-5-100-1]
- neighbors/tests/test_neighbors.py::test_neigh_predictions_algorithm_agnosticity[float64-KNeighborsClassifier-1-100-euclidean-1000-5-100]
- neighbors/tests/test_neighbors.py::test_neigh_predictions_algorithm_agnosticity[float64-KNeighborsClassifier-1-100-minkowski-1000-5-100]
- neighbors/tests/test_neighbors.py::test_neigh_predictions_algorithm_agnosticity[float64-KNeighborsRegressor-1-100-euclidean-1000-5-100]
- neighbors/tests/test_neighbors.py::test_neigh_predictions_algorithm_agnosticity[float64-KNeighborsRegressor-1-100-minkowski-1000-5-100]
- neighbors/tests/test_neighbors.py::test_neigh_predictions_algorithm_agnosticity[float64-KNeighborsClassifier-1-100-l2-1000-5-100]
- neighbors/tests/test_neighbors.py::test_neigh_predictions_algorithm_agnosticity[float64-KNeighborsRegressor-1-100-l2-1000-5-100]
- neighbors/tests/test_neighbors.py::test_KNeighborsClassifier_multioutput
# Models with sparse data are different between oneAPI Data Analytics Library (oneDAL) and stock scikit-learn
- svm/tests/test_sparse.py::test_svc
- svm/tests/test_sparse.py::test_svc_iris
- svm/tests/test_sparse.py::test_sparse_realdata
# Decision function is different, 1.83697605e-06
- ensemble/tests/test_bagging.py::test_sparse_classification
# Same results as in scikit-learn, but in a different order
- svm/tests/test_svm.py::test_svc_ovr_tie_breaking[SVC] <1.8
- svm/tests/test_svm.py::test_svc_ovr_tie_breaking[NuSVC] <1.8
- svm/tests/test_svm.py::test_svc_ovr_tie_breaking[42-SVC] >=1.8
- svm/tests/test_svm.py::test_svc_ovr_tie_breaking[42-NuSVC] >=1.8
# Different models between oneAPI Data Analytics Library (oneDAL) and stock scikit-learn with custom and precompute kernel
- svm/tests/test_svm.py::test_svc_clone_with_callable_kernel
- svm/tests/test_svm.py::test_precomputed
# scikit-learn expects an exception for sparse matrices with 64-bit integer indices,
# scikit-learn-intelex works correctly with 64-bit integer indices
- tests/test_common.py::test_estimators[NuSVC()-check_estimator_sparse_data]
- tests/test_common.py::test_estimators[NuSVC()-check_estimator_sparse_array]
- tests/test_common.py::test_estimators[NuSVC()-check_estimator_sparse_matrix]
- utils/tests/test_estimator_checks.py::test_xfail_ignored_in_check_estimator
# SVC._dual_coef_ is changing after fitting, but the result of prediction is still the same
- svm/tests/test_svm.py::test_tweak_params
# Bitwise comparison of SVR score using a print (diff = 2.220446049250313e-16)
- svm/tests/test_svm.py::test_custom_kernel_not_array_input[SVR]
# test_non_uniform_strategies fails due to differences in handling of vacuous clusters after update
# See https://github.com/uxlfoundation/scikit-learn-intelex/issues/69
- cluster/tests/test_k_means.py::test_kmeans_relocated_clusters >=0.24
# oneAPI Data Analytics Library (oneDAL) does not check convergence for tol == 0.0 for ease of benchmarking
- cluster/tests/test_k_means.py::test_kmeans_convergence >=0.23
- cluster/tests/test_k_means.py::test_kmeans_verbose >=0.23
# Logistic Regression coeffs change due to fix for loss scaling
# (https://github.com/scikit-learn/scikit-learn/pull/26721)
- feature_selection/tests/test_from_model.py::test_importance_getter[estimator0-named_steps.logisticregression.coef_]
- linear_model/tests/test_sag.py::test_sag_pobj_matches_logistic_regression
# This fails on certain platforms. While weighted data does not go through DAAL,
# unweighted does. Since convergence does not occur (comment in the test
# suggests that) and because coefficients are slightly different,
# it results in a prediction disagreement in 1 case.
- ensemble/tests/test_stacking.py::test_stacking_with_sample_weight[StackingClassifier]
# Insufficient accuracy of "coefs" and "intercept" in Elastic Net for multi-target problems
# https://github.com/uxlfoundation/oneDAL/issues/494
- linear_model/tests/test_coordinate_descent.py::test_enet_multitarget
# oneAPI Data Analytics Library (oneDAL) doesn't support sample_weight (back to scikit-learn),
# sufficient accuracy (similar to previous cases)
- linear_model/tests/test_coordinate_descent.py::test_enet_sample_weight_consistency >=0.23
# Different interpretation of trees compared to scikit-learn
# Looks like we need to align tree traversal. This problem will be fixed
- ensemble/tests/test_forest.py::test_min_samples_leaf
# Different random number generation engine in oneDAL and scikit-learn
# The result is depend on random state, for random_state=777 in RandomForestClassifier the test is passed
- ensemble/tests/test_voting.py::test_majority_label_iris
# scikit-learn-intelex RF threads are used internally and are not explicitly specified
- ensemble/tests/test_forest.py::test_backend_respected
# scikit-learn-intelex does not support accessing trees through the result variable
- ensemble/tests/test_forest.py::test_warm_start
- inspection/tests/test_partial_dependence.py::test_recursion_decision_tree_vs_forest_and_gbdt[0] >=0.23
# scikit-learn-intelex implementation builds different trees compared to scikit-learn
# Comparison of tree forest will fail
- ensemble/tests/test_forest.py::test_class_weights
- ensemble/tests/test_forest.py::test_poisson_vs_mse
- inspection/tests/test_permutation_importance.py::test_robustness_to_high_cardinality_noisy_feature >=0.23
- tests/test_common.py::test_estimators[SVC()-check_sample_weights_invariance(kind=zeros)] <1.0
- tests/test_common.py::test_estimators[SVR()-check_sample_weights_invariance(kind=zeros)] <1.0
- tests/test_common.py::test_estimators[NuSVC()-check_sample_weights_invariance(kind=zeros)] <1.0
- tests/test_common.py::test_estimators[NuSVR()-check_sample_weights_invariance(kind=zeros)] <1.0
- tests/test_common.py::test_estimators[NuSVC()-check_class_weight_classifiers] <1.0
- tests/test_multioutput.py::test_multi_output_classification
# Requires SciPy version which is not available in too old environments
- linear_model/tests/test_base.py::test_linear_regression_pd_sparse_dataframe_warning <1.1
# L1 Linear models with sklearn 1.1 + numpy > 1.25 - extra warnings from numpy lead to test fail
- linear_model/tests/test_coordinate_descent.py::test_assure_warning_when_normalize[True-1-LassoCV] >=1.1,<1.2
- linear_model/tests/test_coordinate_descent.py::test_assure_warning_when_normalize[True-1-ElasticNetCV] >=1.1,<1.2
- linear_model/tests/test_coordinate_descent.py::test_assure_warning_when_normalize[False-1-LassoCV] >=1.1,<1.2
- linear_model/tests/test_coordinate_descent.py::test_assure_warning_when_normalize[False-1-ElasticNetCV] >=1.1,<1.2
- linear_model/tests/test_coordinate_descent.py::test_assure_warning_when_normalize[deprecated-0-LassoCV] >=1.1,<1.2
- linear_model/tests/test_coordinate_descent.py::test_assure_warning_when_normalize[deprecated-0-ElasticNetCV] >=1.1,<1.2
# OOB scores in scikit-learn and oneDAL are different because of different random number generators
- ensemble/tests/test_forest.py::test_forest_regressor_oob[True-X0-y0-0.7-array-ExtraTreesRegressor] >=1.3
- ensemble/tests/test_forest.py::test_importances[ExtraTreesRegressor-squared_error-float64] >=0.23 darwin
- ensemble/tests/test_forest.py::test_forest_regressor_oob[X0-y0-0.7-array-ExtraTreesRegressor]
- ensemble/tests/test_forest.py::test_warm_start_oob
- ensemble/tests/test_forest.py::test_distribution
# Different behavior when 1 class enters the input
- feature_selection/tests/test_rfe.py::test_rfe_cv_groups
# few-percent numerical differences in ExtraTreesRegressor, but 6 digits are checked
- ensemble/tests/test_forest.py::test_memory_layout[float64-ExtraTreesRegressor]
- ensemble/tests/test_forest.py::test_memory_layout[float32-ExtraTreesRegressor]
# module name should starts with 'sklearn.' but we have 'daal4py.sklearn.'
- metrics/tests/test_score_objects.py::test_scoring_is_not_metric
- utils/tests/test_estimator_checks.py::test_check_dataframe_column_names_consistency >=1.0
# Stability issue with max absolute difference: 4.33846826e-08/1.17613697e-11. Remove in next release
- ensemble/tests/test_bagging.py::test_estimators_samples_deterministic
# Some values in PCA.components_ (in the last component) aren't equal (0.6 on average
# for absolute error in this test) because of different implementations of PCA.
# The results are also not stable.
- decomposition/tests/test_incremental_pca.py::test_whitening
# The test fails because of changing of 'auto' strategy in PCA to improve performance.
# 'randomized' PCA expected, but 'full' is given.
- decomposition/tests/test_pca.py::test_pca_svd_solver_auto[data3-10-randomized]
# Scikit-learn logistic regression predict depends from decision_function while d4p is not.
# Assertion error in check_estimator (PoorScoreLogisticRegression())
- utils/tests/test_estimator_checks.py::test_check_estimator >=0.24
# RandomForestRegressor sum(y_pred)!=sum(y_true)
- ensemble/tests/test_forest.py::test_balance_property_random_forest[squared_error] >=1.0
# This test fails because with patch config_context with new options, but the
# test checks only the exact number of options that are used
- tests/test_config.py::test_config_context
# Accuracy of scikit-learn-intelex and scikit-learn may differ due to different approaches
- manifold/tests/test_t_sne.py::test_bh_match_exact
- manifold/tests/test_t_sne.py::test_uniform_grid[barnes_hut]
# Failure related to incompatibility of older sklearn versions with updated dependencies
- utils/tests/test_validation.py::test_check_array_pandas_dtype_casting >=1.0,<1.2
- utils/tests/test_validation.py::test_check_sparse_pandas_sp_format <1.2
# Failure due to non-uniformity in the MT2203 engine causing
# bad Random Forest fits for small datasets with large n_estimators
# Had been solved by using MT19937, but oneDAL forces use of MT2203
- tests/test_multioutput.py::test_classifier_chain_tuple_order
# oneDAL decision forest trains individual trees differently than
# sklearn. Attempts to compare individual sklearn trees to oneDAL
# trees will fail, especially since two different RNGs are used.
- ensemble/tests/test_forest.py::test_estimators_samples
# Tests migrated from gpu deselection set starting from sklearn 1.4 for unknowm reason(s)
- ensemble/tests/test_bagging.py::test_estimators_samples >=1.4
- ensemble/tests/test_voting.py::test_sample_weight >=1.4
- svm/tests/test_svm.py::test_auto_weight >=1.4
- tests/test_calibration.py::test_calibrated_classifier_cv_double_sample_weights_equivalence >=1
- tests/test_calibration.py::test_calibrated_classifier_cv_zeros_sample_weights_equivalence >=1.4
- tests/test_common.py::test_estimators[LogisticRegression()-check_sample_weights_invariance(kind=ones)] >=1.4
- tests/test_common.py::test_estimators[LogisticRegression()-check_sample_weights_invariance(kind=zeros)] >=1.4
- tests/test_multioutput.py::test_classifier_chain_fit_and_predict_with_sparse_data >=1.4
# There are not enough data to run onedal backend
- tests/test_common.py::test_estimators[IncrementalRidge()-check_fit2d_1sample]
# Deselection of LogisticRegression tests over accuracy comparisons with sample_weights
# and without. Because scikit-learn-intelex does not support sample_weights, it's doing
# a fallback to scikit-learn in one case and not in the other, and needs to be investigated.
- model_selection/tests/test_classification_threshold.py::test_fit_and_score_over_thresholds_sample_weight >=1.5
- model_selection/tests/test_classification_threshold.py::test_tuned_threshold_classifier_cv_zeros_sample_weights_equivalence >=1.5
# Deselections for 2025.0
- ensemble/tests/test_forest.py::test_importances[ExtraTreesRegressor-squared_error-float64]
- cluster/tests/test_k_means.py::test_kmeans_elkan_results[42-0.01-sparse
- cluster/tests/test_k_means.py::test_kmeans_elkan_results[42-1e-08-sparse
- cluster/tests/test_k_means.py::test_kmeans_elkan_results[42-1e-100-sparse
- cluster/tests/test_k_means.py::test_kmeans_elkan_results[42-0-sparse
- cluster/tests/test_k_means.py::test_kmeans_elkan_results[0.01-sparse
- cluster/tests/test_k_means.py::test_kmeans_elkan_results[1e-08-sparse
- cluster/tests/test_k_means.py::test_kmeans_elkan_results[1e-100-sparse
- cluster/tests/test_k_means.py::test_kmeans_elkan_results[0-sparse
# Temporary deselections due to a bug in oneDAL, remove once the issue is fixed.
# Probably can also removed the kmeans ones above once these are fixed.
- cluster/tests/test_k_means.py::test_float_precision
- cluster/tests/test_k_means.py::test_kmeans_relocated_clusters
- cluster/tests/test_kmeans.py::test_dense_vs_sparse[dims0-elkan-k-means++-None]
- cluster/tests/test_kmeans.py::test_dense_vs_sparse[dims1-full-k-means++-None]
- cluster/tests/test_kmeans.py::test_dense_vs_sparse[dims2-full-k-means++-None]
- cluster/tests/test_kmeans.py::test_dense_vs_sparse[dims2-elkan-k-means++-None]
# Fails in stock scikit-learn: checks that data is modified in-place when not strictly required
- linear_model/tests/test_base.py::test_inplace_data_preprocessing
# array_api dispatching for oneDAL is recognized using the sklearn tag system. This is an expected
# break in sklearn conformance as additional non-default tags cause errors in this test. This
# non-conformance does not impact the verification system of sklearn. A new system (sklearn >=1.6)
# allows for public tag addition. Sklearn also acknowledges the abuse of the old system by others,
# meaning its not too impactful to use it so long as the default keys and value types set by sklearn
# are respected.
- tests/test_common.py::test_valid_tag_types <1.6
# Parameter validation test dbscan only in sklearn 1.1, this is temporary deselected before update
# to CI parameters, as parameter validation is globally handled in sklearn version 1.2 onward
- cluster/tests/test_dbscan.py::test_dbscan_params_validation
# Failing tests since sklearn 1.6
- tests/test_common.py::test_estimators[CalibratedClassifierCV(cv=3,estimator=LogisticRegression(C=1))-check_sample_weight_equivalence_on_dense_data]
- tests/test_common.py::test_estimators[ExtraTreesClassifier(n_estimators=5)-check_sample_weight_equivalence_on_dense_data]
- tests/test_common.py::test_estimators[ExtraTreesRegressor(n_estimators=5)-check_sample_weight_equivalence_on_dense_data]
- utils/tests/test_estimator_checks.py::test_xfail_count_with_no_fast_fail
# XFail vs XPass differs between scikit-learn and scikit-learn-intelex since 1.6
- tests/test_common.py::test_estimators[LinearRegression()-check_sample_weight_equivalence_on_dense_data] <1.7
- tests/test_common.py::test_estimators[LogisticRegression(max_iter=5)-check_sample_weight_equivalence_on_dense_data]
- tests/test_common.py::test_estimators[LogisticRegression(max_iter=5,solver='newton-cg')-check_sample_weight_equivalence_on_dense_data]
- tests/test_common.py::test_estimators[NuSVC()-check_class_weight_classifiers]
- tests/test_common.py::test_estimators[CalibratedClassifierCV(estimator=LogisticRegression(C=1))-check_sample_weights_invariance(kind=ones)]
# Logistic regression is not expected to give exact matches due to small differences in numerical tolerances
- linear_model/tests/test_logistic.py::test_multinomial_binary_probabilities
- linear_model/tests/test_logistic.py::test_logistic_cv_multinomial_score[neg_log_loss-multiclass_agg_list3]
- linear_model/tests/test_logistic.py::test_logistic_regression_class_weights
- linear_model/tests/test_logistic.py::test_liblinear_decision_function_zero
- linear_model/tests/test_logistic.py::test_warm_start
- linear_model/tests/test_logistic.py::test_dtype_match
- linear_model/tests/test_logistic.py::test_newton_cholesky_fallback_to_lbfgs
- linear_model/tests/test_logistic.py::test_logistic_cv_sparse[csr_array]
- linear_model/tests/test_logistic.py::test_logistic_cv_sparse[csr_matrix]
- linear_model/tests/test_logistic.py::test_logistic_cv_multinomial_score
- tests/test_common.py::test_estimators[LogisticRegressionCV(cv=3,max_iter=5)-check_sample_weight_equivalence_on_dense_data]
- ensemble/tests/test_bagging.py::test_estimators_samples >=1.0,<1.1
- ensemble/tests/test_voting.py::test_sample_weight >=1.0,<1.1
- tests/test_multioutput.py::test_multiclass_multioutput_estimator_predict_proba
- model_selection/tests/test_search.py::test_search_cv_sample_weight_equivalence[estimator0]
- tests/test_common.py::test_estimators[StackingClassifier(estimators=[('est1',LogisticRegression(C=0.1)),('est2',LogisticRegression(C=1))])-check_sample_weights_invariance(kind=ones)] <1.1
- tests/test_common.py::test_estimators[StackingClassifier(estimators=[('est1',LogisticRegression(C=0.1)),('est2',LogisticRegression(C=1))])-check_sample_weights_invariance(kind=zeros)] <1.1
- linear_model/tests/test_logistic.py::test_logistic_cv_sparse[42-csr_matrix]
- linear_model/tests/test_logistic.py::test_logistic_cv_sparse[42-csr_array]
- tests/test_common.py::test_estimators[LogisticRegressionCV(cv=3,max_iter=5,use_legacy_attributes=False)-check_sample_weight_equivalence_on_dense_data]
- linear_model/tests/test_logistic.py::test_logistic_regression_array_api_compliance[array_api_strict-CPU_DEVICE-float64-None-False-False-False]
- linear_model/tests/test_logistic.py::test_logistic_regression_array_api_compliance[array_api_strict-CPU_DEVICE-float64-None-False-True-False]
# Logistic regression array api compliance test fails on Windows only due to convergence issue
- linear_model/tests/test_logistic.py::test_logistic_regression_array_api_compliance[array_api_strict-device1-float32-balanced-True-True-True]
# Scikit-learn does not constraint multinomial logistic intercepts to sum to zero.
# Softmax function is invariant to additions by a constant, so even though the numbers
# might look very off here, the predictions they generate are identical.
- linear_model/tests/test_logistic.py::test_logistic_regression_multinomial
# This particular case does not reach convergence, fails because of a warning
- linear_model/tests/test_logistic.py::test_n_iter[newton-cg]
# These fail due to not printing everything that scikit-learn prints on verbose mode
- cluster/tests/test_k_means.py::test_kmeans_verbose
# These fail due to small numerical differences that come from LogisticRegression results
- metrics/_plot/tests/test_roc_curve_display.py::test_roc_curve_display_plotting_from_cv_results
- metrics/_plot/tests/test_roc_curve_display.py::test_roc_curve_from_cv_results_legend_label
# These require version numbers of array API packages that are not available on older Python versions.
# Since it's not possible to select or deselect based on Python version, they are removed entirely.
- metrics/tests/test_classification.py::test_probabilistic_metrics_array_api
- metrics/tests/test_common.py::test_array_api_compliance
- utils/tests/test_stats.py::test_weighted_percentile_array_api_consistency
# Tests for exact equality, but results have differences in the order of machine epsilon
- neighbors/tests/test_neighbors.py::test_KNeighborsClassifier_multioutput
# Linear regression with non-PSD systems doesn't have a unique solution.
# OneDAL prefers minimum-norm solution, but sklearn doesn't.
# Note that all the cases here have 'wide' or 'square' shape (i.e. covariance is not full-rank)
# and 'zero_alpha' (result should match against unregularized) together.
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge[asarray-wide-True-svd-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge[asarray-wide-True-cholesky-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge[asarray-wide-True-lsqr-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge[asarray-wide-True-sparse_cg-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge[csr_matrix-wide-True-lsqr-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge[csr_matrix-wide-True-sparse_cg-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge[csr_array-wide-True-lsqr-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge[csr_array-wide-True-sparse_cg-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_classifier_gcv[asarray-float32-wide-True-ignored-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_classifier_gcv[asarray-float64-wide-True-ignored-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_classifier_gcv[csr_matrix-float32-wide-True-ignored-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_classifier_gcv[csr_matrix-float64-wide-True-ignored-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_classifier_gcv[csr_array-float32-wide-True-ignored-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_classifier_gcv[csr_array-float64-wide-True-ignored-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[asarray-float32-square-True-svd-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[asarray-float32-square-True-eigen-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[asarray-float32-wide-True-svd-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[asarray-float32-wide-True-eigen-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[asarray-float64-square-True-svd-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[asarray-float64-square-True-eigen-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[asarray-float64-wide-True-svd-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[asarray-float64-wide-True-eigen-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[csr_matrix-float32-square-True-svd-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[csr_matrix-float32-square-True-eigen-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[csr_matrix-float32-wide-True-svd-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[csr_matrix-float32-wide-True-eigen-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[csr_matrix-float64-square-True-svd-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[csr_matrix-float64-square-True-eigen-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[csr_matrix-float64-wide-True-svd-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[csr_matrix-float64-wide-True-eigen-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[csr_array-float32-square-True-svd-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[csr_array-float32-square-True-eigen-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[csr_array-float32-wide-True-svd-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[csr_array-float32-wide-True-eigen-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[csr_array-float64-square-True-svd-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[csr_array-float64-square-True-eigen-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[csr_array-float64-wide-True-svd-zero_alpha]
- linear_model/tests/test_ridge.py::test_regularization_limits_ridge_gcv[csr_array-float64-wide-True-eigen-zero_alpha]
# Scikit-learn requires erroring out on different array API namespaces even if they are on the same device,
# but no harm in working correctly under those scenarios.
- linear_model/tests/test_base.py::test_array_api_move_estimator_to
# CI jobs in sklearnex compile scikit-learn from source, not necessarily with the same toolkits as sklearn's CIs
- preprocessing/tests/test_polynomial.py::test_sizeof_LARGEST_INT_t
# --------------------------------------------------------
# No need to test daal4py patching
reduced_tests:
- cluster/tests/test_affinity_propagation.py
- cluster/tests/test_bicluster.py
- cluster/tests/test_birch.py
- cluster/tests/test_mean_shift.py
- cluster/tests/test_optics.py
- compose/tests/test_column_transformer.py
- decomposition/tests/test_dict_learning.py
- decomposition/tests/test_factor_analysis.py
- decomposition/tests/test_nmf.py
- decomposition/tests/test_online_lda.py
- ensemble/tests/test_gradient_boosting.py
- ensemble/tests/test_gradient_boosting_loss_functions.py
- ensemble/tests/test_iforest.py
- feature_selection/tests/test_chi2.py
- feature_selection/tests/test_feature_select.py
- feature_selection/tests/test_mutual_info.py
- feature_selection/tests/test_sequential.py
- feature_selection/tests/test_from_model.py
- manifold/tests/test_isomap.py
- manifold/tests/test_locally_linear.py
- manifold/tests/test_spectral_embedding.py
- model_selection/tests/test_successive_halving.py
- neighbors/tests/test_ball_tree.py
- neighbors/tests/test_kd_tree.py
- neighbors/tests/test_quad_tree.py
- tests/test_kernel_approximation.py
- tests/test_docstring_parameters.py
- tests/test_dummy.py
- tests/test_random_projection.py
- tests/test_naive_bayes.py
- utils/tests/test_arpack.py
- utils/tests/test_cython_blas.py
- utils/tests/test_encode.py
- utils/tests/test_estimator_html_repr.py
- utils/tests/test_extmath.py
- utils/tests/test_fast_dict.py
- utils/tests/test_mocking.py
- utils/tests/test_murmurhash.py
- utils/tests/test_sparsefuncs.py
- utils/tests/test_utils.py
- _loss/
- cross_decomposition/
- datasets/
- ensemble/_hist_gradient_boosting/
- experimental/
- feature_extraction/
- gaussian_process/
- impute/
- inspection/
- neural_network/
- preprocessing/
public:
- tests/test_common.py::test_estimators
# Fails from numpy 2.0 and sklearn 1.4+
- neighbors/tests/test_neighbors.py::test_KNeighborsClassifier_raise_on_all_zero_weights
# floating point error near values == 0 in svm sparse tests using vc oneDAL builds
- svm/tests/test_sparse.py::test_unsorted_indices[csr_matrix] <1.7 win32
- svm/tests/test_sparse.py::test_unsorted_indices[csr_array] <1.7 win32
# sklearn 1.4 has different absolute and relative tolerances for this test,
# set of available solvers and corresponding sklearnex rules to choose one
# than newer versions resulting in test failure on some systems when
# single-threaded computation is used which is a frequent case for CI
- decomposition/tests/test_pca.py::test_pca_dtype_preservation[full] <1.5
- decomposition/tests/test_pca.py::test_pca_dtype_preservation[auto]
# Convergence failure due to different settings and cost function implementation
- linear_model/tests/test_logistic.py::test_logistic_regression_path_convergence_fail
# --------------------------------------------------------
# The following tests currently fail with GPU offloading
gpu:
# Segfaults
- ensemble/tests/test_weight_boosting.py
# Fails
- cluster/tests/test_dbscan.py::test_weighted_dbscan
- model_selection/tests/test_search.py::test_unsupervised_grid_search
- ensemble/tests/test_voting.py::test_sample_weight[42]
- model_selection/tests/test_search.py::test_search_default_iid
- neighbors/tests/test_neighbors.py::test_unsupervised_kneighbors
- neighbors/tests/test_neighbors.py::test_neighbors_metrics[float64-l2]
- svm/tests/test_svm.py::test_svm_classifier_sided_sample_weight[estimator0]
- svm/tests/test_svm.py::test_svm_equivalence_sample_weight_C
- svm/tests/test_svm.py::test_negative_weights_svc_leave_two_labels[partial-mask-label-1-SVC]
- svm/tests/test_svm.py::test_negative_weights_svc_leave_two_labels[partial-mask-label-2-SVC]
# sparse input is not implemented for DBSCAN.
- tests/test_common.py::test_estimators[RandomForestClassifier()-check_class_weight_classifiers]
- tests/test_common.py::test_estimators[SVC()-check_sample_weights_not_an_array]
- tests/test_common.py::test_estimators[SVC()-check_classifier_data_not_an_array]
- tests/test_common.py::test_search_cv[RandomizedSearchCV(estimator=LogisticRegression(),param_distributions={'C':[0.1,1.0]})-check_classifiers_classes]
- tests/test_common.py::test_search_cv[RandomizedSearchCV(estimator=LogisticRegression(),param_distributions={'C':[0.1,1.0]})-check_decision_proba_consistency]
- tests/test_multioutput.py::test_classifier_chain_fit_and_predict_with_sparse_data
# Segmentation faults on GPU
- tests/test_common.py::test_search_cv
# KD Tree (not implemented for GPU)
- neighbors/tests/test_neighbors.py::test_neigh_predictions_algorithm_agnosticity[float64-KNeighborsClassifier-50-500-l2-1000-5-100]
- neighbors/tests/test_neighbors.py::test_neigh_predictions_algorithm_agnosticity[float64-KNeighborsClassifier-100-1000-l2-1000-5-100]
- neighbors/tests/test_neighbors.py::test_neigh_predictions_algorithm_agnosticity[float64-KNeighborsRegressor-50-500-l2-1000-5-100]
- neighbors/tests/test_neighbors.py::test_neigh_predictions_algorithm_agnosticity[float64-KNeighborsRegressor-100-1000-l2-1000-5-100]
# GPU Forest algorithm implementation does not follow certain Scikit-learn standards
- ensemble/tests/test_forest.py::test_max_leaf_nodes_max_depth
- ensemble/tests/test_forest.py::test_min_samples_split[ExtraTreesClassifier]
- ensemble/tests/test_forest.py::test_min_samples_split[RandomForestClassifier]
- ensemble/tests/test_forest.py::test_min_samples_split[ExtraTreesRegressor]
- ensemble/tests/test_forest.py::test_max_samples_boundary_regressors
# numerical issues in GPU Forest algorithms which require further investigation
- ensemble/tests/test_voting.py::test_predict_on_toy_problem[42]
- tests/test_common.py::test_estimators[ExtraTreesClassifier()-check_class_weight_classifiers]
- tests/test_common.py::test_estimators[ExtraTreesRegressor()-check_sample_weights_invariance(kind=zeros)]
- tests/test_common.py::test_estimators[RandomForestRegressor()-check_regressor_data_not_an_array]
- tests/test_common.py::test_estimators[ExtraTreesClassifier()-check_sample_weights_invariance(kind=zeros)]
- ensemble/tests/test_forest.py::test_min_weight_fraction_leaf
# RuntimeError: Device support is not implemented, failing as result of fallback to cpu false
- svm/tests/test_svm.py::test_unfitted
- tests/test_common.py::test_estimators[SVC()-check_estimators_unfitted]
# Introduced with RNG forest updates in oneDAL
- ensemble/tests/test_voting.py::test_set_estimator_drop
# Deselection for Scikit-Learn 1.4 GPU conformance
- model_selection/tests/test_validation.py::test_learning_curve_some_failing_fits_warning >=1.4
# Deselections for Scikit-Learn 1.6 GPU conformance (no GPU kd tree, no rfe implementation, GPU ensemble misalignment)
- neighbors/tests/test_neighbors.py::test_neighbors_metrics[42-float64-l2]
- feature_selection/tests/test_rfe.py::test_rfe_with_sample_weight
- tests/test_common.py::test_estimators[RandomForestRegressor(n_estimators=5)-check_regressor_data_not_an_array]
- tests/test_common.py::test_estimators[RandomForestClassifier(n_estimators=5)-check_class_weight_classifiers]
- tests/test_common.py::test_estimators[ExtraTreesClassifier(n_estimators=5)-check_class_weight_classifiers]
# --------------------------------------------------------
# The following tests fail at collection time, so they cannot be deselected with --deselect and must be ignored with --ignore.
ignored_tests:
# scipy.misc.face was removed; test_image.py calls it at module level
- feature_extraction/tests/test_image.py <1.2