old_par_fit_LDAs: Parallelised fit_LDAs function + coherence included.

View source: R/old_par_fit_LDAs.R

old_par_fit_LDAsR Documentation

Parallelised fit_LDAs function + coherence included.

Description

Fits multiple LDA models (one for each combination of the supplied parameters) This is generally faster than fit_LDAs, the larger the dataset, the larger the benefit.

Usage

old_par_fit_LDAs(dtms, k_opts = 2:3, iter_opts = 2000, coherence_n = 10)

Arguments

dtms

A nested tibble where each row is a dtm

k_opts

vector of the different values of k to fit an LDA model with (k = number of topics)

iter_opts

NA vector of the different values of iter to fit an LDA model with

coherence_n

Number of words to calculate coherence from

Value

A nested tibble in which each row contains an LDA model.


jpcompartir/JPackage documentation built on March 20, 2023, 4 a.m.