Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/i/n/infpy-0.4.13/infpy/madbayes/test/__init__.py   infpy(Download)
 
import sys, logging, numpy
import rpy2.robjects as robjects
from ..dpmeans import dpmeans
 
def test_dp_means():
    logging.info(sys._getframe().f_code.co_name)
    r_faithful = robjects.r['faithful']
    faithful = numpy.array(r_faithful).T
    z = dpmeans(faithful, 25., progress_plots=True)