#NEWLINE# def _fit_adapter( self , X , Y ) : #NEWLINE# #INDENT# if ( len ( np . shape ( np . array ( X [ 0 ] ) ) ) == 1 ) : #NEWLINE# #INDENT# X = [ X ] #NEWLINE# Y = [ Y ] #NEWLINE# #UNINDENT# X = [ np . array ( x ) for x in reversed ( X ) ] #NEWLINE# Y = [ np . array ( y ) for y in reversed ( Y ) ] #NEWLINE# return ( X , Y )