subset_lda.Rd
Takes an LDA model fit to an ENTIRE dataset and extracts just rows present in the TRAIN data for a subsetted data item.
subset_lda(fitted_lda, subsetted_dataset_item)
fitted_lda | LDA fit to FULL dataset |
---|---|
subsetted_dataset_item | result of subset_data_one, list with |
fitted_lda subset to just the timesteps present in the $train
element of subsetted_dataset_item
.
Subsets both the topic proportions and loglikelihood, to maintain the correct dimensions.