#NEWLINE# def fit( self , X , y = None , **params ) : #NEWLINE# #INDENT# 'Learn a NMF model for the data X.\n\n        Parameters\n        ----------\n\n        X: {array-like, sparse matrix}, shape = [n_samples, n_features]\n            Data matrix to be decomposed\n\n        Returns\n        -------\n        self\n        ' #NEWLINE# self . fit_transform ( X , ** params ) #NEWLINE# return self