Check that the LDA_models
input is either a set of
LDA models (class LDA_set
, produced by
LDA_set
) or a singular LDA model (class LDA
,
produced by LDA
).
check_LDA_models(LDA_models)
LDA_models | List of LDA models or singular LDA model to evaluate. |
---|
An error message is thrown if LDA_models
is not proper,
else NULL
.
data(rodents) document_term_table <- rodents$document_term_table document_covariate_table <- rodents$document_covariate_table LDAs <- LDA_set(document_term_table, topics = 2, nseeds = 1) LDA_models <- select_LDA(LDAs) check_LDA_models(LDA_models)