metrics | R Documentation |
Basic plot to visualize metrics. For a nicer, more elaborate plot, see 'ldatuning::FindTopicsNumber_plot()'
metrics(x, ...) ## S4 method for signature 'TopicModel' metrics(x, verbose = TRUE) ## S3 method for class 'metrics' plot(x, ...)
x |
Input object of class inheriting from 'TopicModel'. |
... |
Further arguments (unused). |
verbose |
A 'logical' value, whether to output progress messages. |
lda <- system.file(package = "biglda", "extdata", "mallet", "lda_mallet.bin") |> mallet_load_topicmodel() |> as_LDA() m <- metrics(lda) if (interactive()) plot(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.