#NEWLINE# def fit( self , X , y = None , sample_weight = None ) : #NEWLINE# #INDENT# 'Fit estimator.\n\n        Parameters\n        ----------\n        X : array-like or sparse matrix, shape=(n_samples, n_features)\n            The input samples. Use ``dtype=np.float32`` for maximum\n            efficiency. Sparse matrices are also supported, use sparse\n            ``csc_matrix`` for maximum efficiency.\n\n        Returns\n        -------\n        self : object\n            Returns self.\n\n        ' #NEWLINE# self . fit_transform ( X , y , sample_weight = sample_weight ) #NEWLINE# return self