subset_lda: Subset an LDA model

Description Usage Arguments Details Value

View source: R/subset_run_helpers.R

Description

Takes an LDA model fit to an ENTIRE dataset and extracts just rows present in the TRAIN data for a subsetted data item.

Usage

1
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.

Details

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

Value

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


diazrenata/cvlt documentation built on Dec. 19, 2021, 11:08 p.m.