sample_pclda: sample_pclda

Description Usage Arguments

View source: R/pcldar.R

Description

Run the PCLDA (default Polya Urn) sampler

Usage

1
2
3
sample_pclda(ldaconfig, ds, iterations = 2000,
  samplerType = "cc.mallet.topics.PolyaUrnSpaliasLDA", testset = NULL,
  save_sampler = TRUE)

Arguments

ldaconfig

LDA config object

ds

LDA dataset

iterations

number of iterations to run

samplerType

Java class of the sampler. Must implement the LDASampler interface

testset

If give, the left-to-right held out log likelihood will be calculated on this dataset

save_sampler

booean indicating that the sampler should be saved to file after finishing (default TRUE)


lejon/pcldar documentation built on Feb. 23, 2020, 3:11 p.m.