File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 53
53
n_classes = 3 , random_state = 42
54
54
)
55
55
X_binary , y_binary = make_classification (n_classes = 2 , random_state = 42 )
56
+ X_breast_cancer , y_breast_cancer = load_breast_cancer (return_X_y = True )
57
+ X_breast_cancer = scale (X_breast_cancer )
56
58
57
59
58
60
@pytest .mark .parametrize (
@@ -434,10 +436,8 @@ def test_stacking_classifier_stratify_default():
434
436
final_estimator = LogisticRegression (),
435
437
cv = KFold (shuffle = True , random_state = 42 ),
436
438
),
437
- * [
438
- scale (data ) if idx == 0 else data
439
- for idx , data in list (enumerate (load_breast_cancer (return_X_y = True )))
440
- ],
439
+ X_breast_cancer ,
440
+ y_breast_cancer ,
441
441
),
442
442
(
443
443
StackingRegressor (
@@ -500,10 +500,8 @@ def test_stacking_classifier_sample_weight_fit_param():
500
500
],
501
501
final_estimator = LogisticRegression (),
502
502
),
503
- * [
504
- scale (data ) if idx == 0 else data
505
- for idx , data in list (enumerate (load_breast_cancer (return_X_y = True )))
506
- ],
503
+ X_breast_cancer ,
504
+ y_breast_cancer ,
507
505
),
508
506
(
509
507
StackingRegressor (
You can’t perform that action at this time.
0 commit comments