Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/f/c/fcm-0.9.1/src/statistics/dp_cluster.py   fcm(Download)
from numpy.random import multinomial
from component import Component
from util import modesearch
from warnings import warn
 
        """
        try:
            modes, cmap = modesearch(self.pis, self.centered_mus, self.centered_sigmas, **kwargs)
            return ModalDPMixture(self.clusters, cmap, modes, self.m, self.s)
 
        except AttributeError:
            #warn("trying to make modal of a mixture I'm not sure is normalized.\nThe mode finding algorithm is designed for normalized data.\nResults may be unexpected")
            modes, cmap = modesearch(self.pis, self.mus, self.sigmas, **kwargs)