#NEWLINE# def fit( self , X , y = None , **params ) : #NEWLINE# #INDENT# "Learn a NMF model for the data X.\n\n        Parameters\n        ----------\n        X: {array-like, sparse matrix}, shape (n_samples, n_features)\n            Data matrix to be decomposed\n\n        Attributes\n        ----------\n        components_ : array-like, shape (n_components, n_features)\n            Factorization matrix, sometimes called 'dictionary'.\n\n        n_iter_ : int\n            Actual number of iterations for the transform.\n\n        Returns\n        -------\n        self\n        " #NEWLINE# self . fit_transform ( X , ** params ) #NEWLINE# return self