metrics: Evaluate topic model.

metricsR Documentation

Evaluate topic model.

Description

Basic plot to visualize metrics. For a nicer, more elaborate plot, see 'ldatuning::FindTopicsNumber_plot()'

Usage

metrics(x, ...)

## S4 method for signature 'TopicModel'
metrics(x, verbose = TRUE)

## S3 method for class 'metrics'
plot(x, ...)

Arguments

x

Input object of class inheriting from 'TopicModel'.

...

Further arguments (unused).

verbose

A 'logical' value, whether to output progress messages.

Examples

lda <- system.file(package = "biglda", "extdata", "mallet", "lda_mallet.bin") |>
  mallet_load_topicmodel() |>
  as_LDA()
m <- metrics(lda)
if (interactive()) plot(m)

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