#NEWLINE# def _project_and_cluster( self , data , vectors , n_clusters ) : #NEWLINE# #INDENT# 'Project ``data`` to ``vectors`` and cluster the result.' #NEWLINE# projected = safe_sparse_dot ( data , vectors ) #NEWLINE# ( _ , labels ) = self . _k_means ( projected , _ ) #NEWLINE# return labels