Skip to content

Reproducing small simulation experiments

jasonbaldridge edited this page Apr 10, 2013 · 3 revisions

To reproduce the plots in section 4.1 of the paper, go to the topicmodel-eval/src/main/r directory and load R. If you don't have the gtools package installed, you'll need to install it.

$ install.packages("gtools")

Then source the file topic-holdout-sims.R.

$ source("topic-holdout-sims.R")

See holdoututils.R for the implementations of the different evaluation methods.

If you already have the gtools library installed, then you may run

$ R CMD BATCH topic-holdout-sims.R 

directly from the terminal.

Clone this wiki locally