View source: R/normal_block_cv.R
| plot.normal_block_cv | R Documentation |
The held-out log-likelihood against the number of clusters, with one standard error on either side.
## S3 method for class 'normal_block_cv'
plot(x, ...)
x |
an object of class |
... |
not used, only here for S3 compatibility |
a ggplot2::ggplot graph
ex <- generate_normal_block_var_data(n = 60, p = 15, d = 1, q = 3)
data <- NormalBlockData$new(ex$Y, ex$X)
set.seed(1)
cv <- normal_block_cv(data, blocks = 2:4, folds = 3)
plot(cv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.