#NEWLINE# def cluster( self , n_clusters = 8 ) : #NEWLINE# #INDENT# import sklearn.cluster as clust #NEWLINE# return clust . KMeans ( n_clusters = n_clusters ) . fit_predict ( self . _normalizer . denormalize_by ( self . data_raw , self . codebook . matrix ) )