#NEWLINE# @ staticmethod #NEWLINE# def featureTransform( X , mode = 'polynomial' , degree = 1 ) : #NEWLINE# #INDENT# poly = PolynomialFeatures ( degree ) #NEWLINE# process_X = poly . fit_transform ( X ) #NEWLINE# if ( mode == 'legendre' ) : #NEWLINE# #INDENT# lege = legendre ( degree ) #NEWLINE# process_X = lege ( process_X ) #NEWLINE# #UNINDENT# return degree