get_diagnostics | R Documentation |
The MALLET topic model toolkit includes a class 'TopicModelDiagnostics' able to prepare a set of metrics on the topics of a topic model. The function 'get_diagnostics()' will return a 'data.table' with these diagnostics. See the [Mallet documentation](http://mallet.cs.umass.edu/diagnostics.php) for an explanation of the metrics.
get_diagnostics(x, n = 50L, verbose = TRUE)
x |
An instance of the RTopicModel class (java object). |
n |
An 'integer' value, the number of the top words that will be evaluated. |
verbose |
A 'logical' value, whether to show progress messages. |
A 'data.table'.
f <- system.file(package = "biglda", "extdata", "mallet", "lda_mallet.bin") model <- mallet_load_topicmodel(f) diagnostics <- get_diagnostics(model) head(diagnostics)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.