update.top2vec {doc2vec}R Documentation

Update a Top2vec model

Description

Update a Top2vec model by updating the UMAP dimension reduction together with the HDBSCAN clustering or update only the HDBSCAN clustering

Usage

## S3 method for class 'top2vec'
update(
  object,
  type = c("umap", "hdbscan"),
  umap = object$umap_FUN,
  trace = FALSE,
  ...
)

Arguments

object

an object of class top2vec as returned by top2vec

type

a character string indicating what to udpate. Either 'umap' or 'hdbscan' where the former (type = 'umap') indicates to update the umap as well as the hdbscan procedure and the latter (type = 'hdbscan') indicates to update only the hdbscan step.

umap

see umap argument in top2vec

trace

logical indicating to print evolution of the algorithm

...

further arguments either passed on to hdbscan in case type is 'hdbscan' or to umap in case type is 'umap'

Value

an updated top2vec object

Examples

# For an example, look at the documentation of ?top2vec

[Package doc2vec version 0.2.0 Index]