get_loglik_parallel: Get loglikelihood from multiple locally saved models

View source: R/get_loglik_parallel.R

get_loglik_parallelR Documentation

Get loglikelihood from multiple locally saved models

Description

The function loads each of the specified LDA models created with text2vec in parallel and extracts the loglikelihodd from the last iteration step. This function is useful if not all models can be loaded into RAM at once due to memory restrictions.

Usage

get_loglik_parallel(modelfiles, ncores)

Arguments

modelfiles

The full filenames as character of the models saved as .rds to extract loglik.

ncores

The number of cores to be used. Advise: leave one processor spare, if you want to use your computer during operation of the function.

Value

A data.table listing the number of topics of each model with associated loglik.


manuelbickel/textility documentation built on Nov. 25, 2022, 9:07 p.m.