mergeBatchTopics: Merge LDA Topic Matrices

View source: R/mergeBatchTopics.R

mergeBatchTopicsR Documentation

Merge LDA Topic Matrices

Description

Collects LDA results from a given registry and merges their topic matrices for a given set of vocabularies.

Usage

mergeBatchTopics(...)

## S3 method for class 'LDABatch'
mergeBatchTopics(x, vocab, progress = TRUE, ...)

## Default S3 method:
mergeBatchTopics(vocab, reg, job, id, progress = TRUE, ...)

Arguments

...

additional arguments

x

[named list]
LDABatch object. Alternatively job, reg and id can be passed or their defaults are taken.

vocab

[character]
Vocabularies taken into consideration for merging topic matrices. Default is the vocabulary of the first LDA.

progress

[logical(1)]
Should a nice progress bar be shown? Turning it off, could lead to significantly faster calculation. Default ist TRUE.

reg

[Registry]
Registry. See reduceResultsList.

job

[data.frame or integer]
A data.frame or data.table with a column named "job.id" or a vector of integerish job ids. See reduceResultsList.

id

[character(1)]
A name for the registry. If not passed, the folder's name is extracted from reg.

Details

For details and examples see mergeTopics.

Value

[named matrix] with the count of vocabularies (row wise) in topics (column wise).

See Also

Other merge functions: mergeRepTopics(), mergeTopics()

Other batch functions: LDABatch(), as.LDABatch(), getJob()


JonasRieger/ldaPrototype documentation built on Feb. 5, 2023, 6:45 p.m.