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)

Arguments

fitted_lda

LDA fit to FULL dataset

subsetted_dataset_item

result of subset_data_one, list with $test and $train elements.

Value

fitted_lda subset to just the timesteps present in the $train element of subsetted_dataset_item.

Details

Subsets both the topic proportions and loglikelihood, to maintain the correct dimensions.