reset: Re-initialize a topic model

View source: R/methods.R

resetR Documentation

Re-initialize a topic model

Description

This function is used re-initialize a topic model, as if it was created from LDA(), JST() or another model. The re-initialized model retains its original parameter specification.

Usage

reset(x)

Arguments

x

a model created from the LDA(), JST() or rJST() function and estimated with grow()

Value

a sentopicmodel of the relevant model class, with the iteration count reset to zero and re-initialized assignment of latent variables.

Author(s)

Olivier Delmarcelle

See Also

grow()

Examples

model <- LDA(ECB_press_conferences_tokens)
model <- grow(model, 10)
reset(model)

sentopics documentation built on May 31, 2023, 8:26 p.m.