View source: R/model-criticism.R
| cv_items | R Documentation |
Splits items into k folds, fits on training items, evaluates on held-out items.
cv_items(transmatrix, k = 5L, priors = NULL, seed = NULL)
transmatrix |
numeric matrix from multi_transmat() |
k |
integer number of folds |
priors |
optional numeric vector of starting parameters |
seed |
optional integer random seed |
list with fold_results, mean_ll, total_ll, perplexity, se
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.