File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
sklearn/linear_model/tests Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,9 @@ def test_ransac_min_n_samples():
210210 residual_threshold = 5 , random_state = 0 )
211211 ransac_estimator6 = RANSACRegressor (base_estimator ,
212212 residual_threshold = 5 , random_state = 0 )
213+ ransac_estimator7 = RANSACRegressor (base_estimator ,
214+ min_samples = X .shape [0 ] + 1 ,
215+ residual_threshold = 5 , random_state = 0 )
213216
214217 ransac_estimator1 .fit (X , y )
215218 ransac_estimator2 .fit (X , y )
@@ -221,6 +224,7 @@ def test_ransac_min_n_samples():
221224 assert_equal (ransac_estimator1 .predict (X ), ransac_estimator6 .predict (X ))
222225 assert_raises (ValueError , ransac_estimator3 .fit , X , y )
223226 assert_raises (ValueError , ransac_estimator4 .fit , X , y )
227+ assert_raises (ValueError , ransac_estimator7 .fit , X , y )
224228
225229
226230def test_ransac_multi_dimensional_targets ():
You can’t perform that action at this time.
0 commit comments