Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

"""
(C) Mathieu Blondel - 2010
License: BSD 3 clause
Implementation of the collapsed Gibbs sampler for
Latent Dirichlet Allocation, as described in
Finding scientifc topics (Griffiths and Steyvers)
"""
@junjiah
junjiah / 0_reuse_code.js
Created November 17, 2013 04:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# Jie Bao, 2013-07-16
# baojie@gmail.com
# simple Naive Bayes classifier
import nltk
from nltk.corpus import movie_reviews
import random
import os
import json