#NEWLINE# def test_regression( ) : #NEWLINE# #INDENT# boston = load_boston ( ) #NEWLINE# ( X , y ) = ( boston . data , boston . target ) #NEWLINE# lr = LinearRegression ( ) #NEWLINE# sfs_r = SFS ( lr , k_features = 13 , forward = True , floating = False , scoring = 'mean_squared_error' , cv = 10 , skip_if_stuck = True , print_progress = False ) #NEWLINE# sfs_r = sfs_r . fit ( X , y ) #NEWLINE# assert ( round ( sfs_r . k_score_ , 4 ) == ( - 34.7631 ) )