#NEWLINE# def _initialize( self , X , resp ) : #NEWLINE# #INDENT# 'Initialization of the Gaussian mixture parameters.\n\n        Parameters\n        ----------\n        X : array-like, shape (n_samples, n_features)\n\n        resp : array-like, shape (n_samples, n_components)\n        ' #NEWLINE# ( weights , means , covariances ) = _estimate_gaussian_parameters ( X , resp , self . reg_covar , covariances . covariance_type ) #NEWLINE# weights /= X . shape [ 0 ] #NEWLINE# self . weights_ = ( weights if ( self . weights_init is None ) else self . weights_init ) #NEWLINE# self . means_ = ( means if ( self . means_init is None ) else self . means_init ) #NEWLINE# self . covariances_ = ( covariances if ( self . covariances_init is None ) else self . covariances_init )