def train_coarse(data, V=8, kmeans_coarse_iters=10, n_init=10, random_state=None):

    logger.info('Fitting coarse quantizer...')

    # Fit coarse model
    model = KMeans(n_clusters=V, init="k-means++", max_iter=kmeans_coarse_iters, n_init=n_init, n_jobs=1, verbose=False, random_state=random_state)
    model.fit(data)

    logger.info('Done fitting coarse quantizer.')

    return model.cluster_centers_
Adds today's date to the slug of a new live blog to avoid collisions.
dataset/ETHPy150Open yahoo/lopq/python/lopq/model.py/train_coarse--crossover with--dataset/ETHPy150Open albatrossandco/brubeck_cms/brubeck/blogs/models.py/Blog.save