Permalink
Browse files

Adding comments.

  • Loading branch information...
1 parent 83e2a8c commit 9743488510af7441492f1f18211a002a3411cac6 @echen committed Mar 23, 2012
Showing with 5 additions and 0 deletions.
  1. +2 −0 dpgmm.py
  2. +3 −0 plots.R
View
2 dpgmm.py
@@ -11,6 +11,8 @@
FILENAME = "mcdonalds-normalized-data.tsv"
+# Note: you'll have to remove the last "name" column in the file (or
+# some other such thing), so that all the columns are numeric.
x = numpy.loadtxt(open(FILENAME, "rb"), delimiter = "\t", skiprows = 1)
dpgmm = mixture.DPGMM(n_components = 25)
dpgmm.fit(x)
View
3 plots.R
@@ -1,3 +1,6 @@
+library(ggplot2)
+library(reshape)
+
# Some of the plots used in the blog post.
##########

0 comments on commit 9743488

Please sign in to comment.