R/main.R
ldaPreds.Rd
The function to predict the topics of a new document with the trained model
ldaPreds(
model,
data,
id_col,
data_col,
num_iterations = 100,
seed = 42,
save_dir = "./results",
load_dir = NULL
)
(list) The trained model
(tibble) The new data
(string) The data column with the ids of the new documents
(string) The data column with the text of the new documents
(integer) The number of iterations to run the model
(integer) The seed to set for reproducibility
(string) The directory to save the model, if NULL, the predictions will not be saved
(string) The directory to load the model from, if NULL, the predictions will not be loaded
A tibble of the predictions