@@ -329,7 +329,7 @@ def test_parallel():
329329 yield check_parallel , name , iris .data , iris .target
330330
331331 for name in FOREST_REGRESSORS :
332- yield check_parallel , name , boston .data , boston .target
332+ yield check_parallel , name , boston .data , boston .target
333333
334334
335335def check_pickle (name , X , y ):
@@ -352,7 +352,7 @@ def test_pickle():
352352 yield check_pickle , name , iris .data [::2 ], iris .target [::2 ]
353353
354354 for name in FOREST_REGRESSORS :
355- yield check_pickle , name , boston .data [::2 ], boston .target [::2 ]
355+ yield check_pickle , name , boston .data [::2 ], boston .target [::2 ]
356356
357357
358358def check_multioutput (name ):
@@ -782,7 +782,7 @@ def check_class_weights(name):
782782
783783 # Check that sample_weight and class_weight are multiplicative
784784 clf1 = ForestClassifier (random_state = 0 )
785- clf1 .fit (iris .data , iris .target , sample_weight ** 2 )
785+ clf1 .fit (iris .data , iris .target , sample_weight ** 2 )
786786 clf2 = ForestClassifier (class_weight = class_weight , random_state = 0 )
787787 clf2 .fit (iris .data , iris .target , sample_weight )
788788 assert_almost_equal (clf1 .feature_importances_ , clf2 .feature_importances_ )
@@ -973,8 +973,3 @@ def test_warm_start_oob():
973973 yield check_warm_start_oob , name
974974 for name in FOREST_REGRESSORS :
975975 yield check_warm_start_oob , name
976-
977-
978- if __name__ == "__main__" :
979- import nose
980- nose .runmodule ()
0 commit comments