bootstrap_lss | R Documentation |
A function to compute polarity scores of words and documents by resampling hyper-parameters from a fitted LSS model.
bootstrap_lss(
x,
what = c("seeds", "k"),
mode = c("terms", "coef", "predict"),
remove = FALSE,
from = 50,
to = NULL,
by = 50,
verbose = FALSE,
...
)
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 |
remove |
if |
from, to, by |
passed to |
verbose |
show messages if |
... |
additional arguments passed to |
This function internally creates LSS fitted textmodel_lss objects by resampling hyper-parameters and computes polarity of words or documents. The resulting matrix can be used to asses the validity and the reliability of seeds or k.
Note that the objects created by as.textmodel_lss()
does not contain data, users
must pass newdata
via ...
when mode = "predict"
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.