Learn R Programming

doc2vec (version 0.2.2)

update.top2vec: 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 top2vec
update(
  object,
  type = c("umap", "hdbscan"),
  umap = object$umap_FUN,
  trace = FALSE,
  ...
)

Value

an updated top2vec object

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'

Examples

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

Run the code above in your browser using DataLab