FastCao2009: Fast Implementation of Cao et al. 2009

FastCao2009R Documentation

Fast Implementation of Cao et al. 2009

Description

The function picks up the suggestion of Cao et al. 2009 for a density-based method for LDA model selection and offers an implementation that is substantially faster than ldatuning.

Usage

FastCao2009(x)

## S4 method for signature 'TopicModel'
FastCao2009(x)

## S4 method for signature 'matrix'
FastCao2009(x)

## S4 method for signature 'jobjRef'
FastCao2009(x)

Arguments

x

A LDA model (S4 class from topicmodels package).

Examples

if (!mallet_is_installed()) mallet_install()
fname <- system.file(package = "biglda", "extdata", "mallet", "lda_mallet.bin")
lda <- mallet_load_topicmodel(fname)
lda2 <- as_LDA(lda)
FastCao2009(lda2)

PolMine/biglda documentation built on Feb. 25, 2023, 11:24 p.m.