bootstrap_lss: [experimental] Compute polarity scores with different...

View source: R/bootstrap.R

bootstrap_lssR Documentation

[experimental] Compute polarity scores with different hyper-parameters

Description

A function to compute polarity scores of words by resampling hyper-parameters from a fitted LSS model.

Usage

bootstrap_lss(
  x,
  what = c("seeds", "k"),
  mode = c("terms", "coef"),
  from = 50,
  to = NULL,
  by = 50,
  verbose = FALSE,
  ...
)

Arguments

x

a fitted textmodel_lss object.

what

choose the hyper-parameter to resample in bootstrapping.

mode

choose the type of the result of bootstrapping. If coef, returns polarity scores; if terms, returns words sorted by the polarity scores in descending order.

from, to, by

passed to seq() to generate values for k; only used when what = "k".

verbose

show messages if TRUE.

...

additional arguments passed to as.textmodel_lss().


LSX documentation built on March 7, 2023, 6:46 p.m.

Related to bootstrap_lss in LSX...