'Estimate the parameters of the Dirichlet distribution.
Parameters
nk : array-like, shape (n_components,)'

def _estimate_weights(self, nk):

    if (self.weight_concentration_prior_type == 'dirichlet_process'):
        self.weight_concentration_ = ((1.0 + nk), (self.weight_concentration_prior_ + np.hstack((np.cumsum(nk[::(-1)])[(-2)::(-1)], 0))))
    else:
        self.weight_concentration_ = (self.weight_concentration_prior_ + nk)
