#NEWLINE# @ staticmethod #NEWLINE# def _combinations( n_features , degree , interaction_only , include_bias ) : #NEWLINE# #INDENT# comb = ( combinations if degree else combinations_w_r ) #NEWLINE# start = int ( ( not include_bias ) ) #NEWLINE# return chain . from_iterable ( ( comb ( range ( n_features ) , i ) for i in range ( start , ( degree + 1 ) ) ) )