Select_topic_number: To select the optimal topic number.

View source: R/MUSIC.r

Select_topic_numberR Documentation

To select the optimal topic number.

Usage

Select_topic_number(topic_model_list, plot = FALSE, plot_path = "./select_topic_number.pdf")

Arguments

topic_model_list

A list of "LDA" class with different topic number. It can be obtained by the function "Get_topics()" in this package.

plot

FALSE by default. If TRUE, plot the graph.

plot_path

The save path of the graph you plot. It works only when the parameter "plot" is TRUE.

Value

An object, "LDA" class with the optimal topic number selected.

Author(s)

Bin Duan


bm2-lab/MASCOT documentation built on April 19, 2024, 4:35 p.m.