#NEWLINE# def fit_transform( self , X , y ) : #NEWLINE# #INDENT# '\n        Fits the data and then returns the transformed version\n        ' #NEWLINE# self . fit ( X , y ) #NEWLINE# ( self . new_X , self . new_y ) = self . oversample ( ) #NEWLINE# self . new_X = np . concatenate ( ( self . new_X , self . X ) , axis = 0 ) #NEWLINE# self . new_y = np . concatenate ( ( self . new_y , self . y ) , axis = 0 ) #NEWLINE# return ( self . new_X , self . new_y )