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(object)

Arguments

object

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

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

fit()

Examples

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

sentopics documentation built on May 29, 2024, 5:39 a.m.