1717
1818import lightgbm as lgb
1919
20- from .utils import load_boston , load_breast_cancer , load_digits , load_iris
20+ from .utils import load_breast_cancer , load_digits , load_iris
2121
2222decreasing_generator = itertools .count (0 , - 1 )
2323
@@ -99,6 +99,7 @@ def test_rf():
9999
100100
101101def test_regression ():
102+ pytest .skip ("load_boston() was removed in scikit-learn 1.2.0" )
102103 X , y = load_boston (return_X_y = True )
103104 X_train , X_test , y_train , y_test = train_test_split (X , y , test_size = 0.1 , random_state = 42 )
104105 params = {
@@ -643,6 +644,7 @@ def test_early_stopping():
643644
644645
645646def test_continue_train ():
647+ pytest .skip ("load_boston() was removed in scikit-learn 1.2.0" )
646648 X , y = load_boston (return_X_y = True )
647649 X_train , X_test , y_train , y_test = train_test_split (X , y , test_size = 0.1 , random_state = 42 )
648650 params = {
@@ -671,6 +673,7 @@ def test_continue_train():
671673
672674
673675def test_continue_train_reused_dataset ():
676+ pytest .skip ("load_boston() was removed in scikit-learn 1.2.0" )
674677 X , y = load_boston (return_X_y = True )
675678 params = {
676679 'objective' : 'regression' ,
@@ -685,6 +688,7 @@ def test_continue_train_reused_dataset():
685688
686689
687690def test_continue_train_dart ():
691+ pytest .skip ("load_boston() was removed in scikit-learn 1.2.0" )
688692 X , y = load_boston (return_X_y = True )
689693 X_train , X_test , y_train , y_test = train_test_split (X , y , test_size = 0.1 , random_state = 42 )
690694 params = {
@@ -733,6 +737,7 @@ def test_continue_train_multiclass():
733737
734738
735739def test_cv ():
740+ pytest .skip ("load_boston() was removed in scikit-learn 1.2.0" )
736741 X_train , y_train = load_boston (return_X_y = True )
737742 params = {'verbose' : - 1 }
738743 lgb_train = lgb .Dataset (X_train , y_train )
@@ -837,6 +842,7 @@ def test_cvbooster():
837842
838843
839844def test_feature_name ():
845+ pytest .skip ("load_boston() was removed in scikit-learn 1.2.0" )
840846 X_train , y_train = load_boston (return_X_y = True )
841847 params = {'verbose' : - 1 }
842848 lgb_train = lgb .Dataset (X_train , y_train )
@@ -866,6 +872,7 @@ def test_feature_name_with_non_ascii():
866872
867873
868874def test_save_load_copy_pickle ():
875+ pytest .skip ("load_boston() was removed in scikit-learn 1.2.0" )
869876 def train_and_predict (init_model = None , return_model = False ):
870877 X , y = load_boston (return_X_y = True )
871878 X_train , X_test , y_train , y_test = train_test_split (X , y , test_size = 0.1 , random_state = 42 )
@@ -1496,6 +1503,7 @@ def test_refit():
14961503
14971504
14981505def test_mape_rf ():
1506+ pytest .skip ("load_boston() was removed in scikit-learn 1.2.0" )
14991507 X , y = load_boston (return_X_y = True )
15001508 params = {
15011509 'boosting_type' : 'rf' ,
@@ -1514,6 +1522,7 @@ def test_mape_rf():
15141522
15151523
15161524def test_mape_dart ():
1525+ pytest .skip ("load_boston() was removed in scikit-learn 1.2.0" )
15171526 X , y = load_boston (return_X_y = True )
15181527 params = {
15191528 'boosting_type' : 'dart' ,
@@ -2052,6 +2061,7 @@ def test_default_objective_and_metric():
20522061
20532062@pytest .mark .skipif (psutil .virtual_memory ().available / 1024 / 1024 / 1024 < 3 , reason = 'not enough RAM' )
20542063def test_model_size ():
2064+ pytest .skip ("load_boston() was removed in scikit-learn 1.2.0" )
20552065 X , y = load_boston (return_X_y = True )
20562066 data = lgb .Dataset (X , y )
20572067 bst = lgb .train ({'verbose' : - 1 }, data , num_boost_round = 2 )
@@ -2079,6 +2089,7 @@ def test_model_size():
20792089
20802090
20812091def test_get_split_value_histogram ():
2092+ pytest .skip ("load_boston() was removed in scikit-learn 1.2.0" )
20822093 X , y = load_boston (return_X_y = True )
20832094 lgb_train = lgb .Dataset (X , y , categorical_feature = [2 ])
20842095 gbm = lgb .train ({'verbose' : - 1 }, lgb_train , num_boost_round = 20 )
@@ -2159,6 +2170,7 @@ def test_get_split_value_histogram():
21592170
21602171
21612172def test_early_stopping_for_only_first_metric ():
2173+ pytest .skip ("load_boston() was removed in scikit-learn 1.2.0" )
21622174
21632175 def metrics_combination_train_regression (valid_sets , metric_list , assumed_iteration ,
21642176 first_metric_only , feval = None ):
@@ -2465,6 +2477,7 @@ def test_dataset_params_with_reference():
24652477
24662478
24672479def test_extra_trees ():
2480+ pytest .skip ("load_boston() was removed in scikit-learn 1.2.0" )
24682481 # check extra trees increases regularization
24692482 X , y = load_boston (return_X_y = True )
24702483 lgb_x = lgb .Dataset (X , label = y )
@@ -2484,6 +2497,7 @@ def test_extra_trees():
24842497
24852498
24862499def test_path_smoothing ():
2500+ pytest .skip ("load_boston() was removed in scikit-learn 1.2.0" )
24872501 # check path smoothing increases regularization
24882502 X , y = load_boston (return_X_y = True )
24892503 lgb_x = lgb .Dataset (X , label = y )
@@ -2554,6 +2568,7 @@ def _imptcs_to_numpy(X, impcts_dict):
25542568
25552569
25562570def test_interaction_constraints ():
2571+ pytest .skip ("load_boston() was removed in scikit-learn 1.2.0" )
25572572 X , y = load_boston (return_X_y = True )
25582573 num_features = X .shape [1 ]
25592574 train_data = lgb .Dataset (X , label = y )
@@ -2709,6 +2724,7 @@ def test_linear_single_leaf():
27092724
27102725
27112726def test_predict_with_start_iteration ():
2727+ pytest .skip ("load_boston() was removed in scikit-learn 1.2.0" )
27122728 def inner_test (X , y , params , early_stopping_rounds ):
27132729 X_train , X_test , y_train , y_test = train_test_split (X , y , test_size = 0.1 , random_state = 42 )
27142730 train_data = lgb .Dataset (X_train , label = y_train )
0 commit comments