#NEWLINE# def test_cross_validate( self ) : #NEWLINE# #INDENT# folds = 3 #NEWLINE# estimator = linear_model . LinearRegression ( ) #NEWLINE# cvresult = cross_validate ( self . data , folds = folds , features = [ F ( 10 ) , F ( 'a' ) ] , target = F ( 'b' ) , estimator = estimator ) #NEWLINE# self . assertEqual ( len ( cvresult . results ) , cvresult ) #NEWLINE# self . assertEqual ( cvresult . model_def . estimator . base_estimator_ , estimator )