#NEWLINE# def fit_predict( self , X , y = None ) : #NEWLINE# #INDENT# 'Performs clustering on X and returns cluster labels.\n\n        Parameters\n        ----------\n        X : ndarray, shape (n_samples, n_features)\n            Input data.\n\n        Returns\n        -------\n        y : ndarray, shape (n_samples,)\n            cluster labels\n        ' #NEWLINE# self . fit ( X ) #NEWLINE# return self . labels_