Crossvalidate_Fn | R Documentation |
Crossvalidate_Fn
runs a k-fold crossvalidation analysis on a fitted model object
Crossvalidate_Fn(
record_dir,
parhat,
original_data,
group_i = NULL,
kfold = 10,
newtonsteps = 1,
skip_finished = FALSE,
...
)
record_dir |
a directory with writing privilege where the runs are stored |
parhat |
a tagged list of parameters from the fitted model, e.g., as generated by |
original_data |
a tagged list of data for the VAST model |
group_i |
a vector of positive integers, indicating the k-fold group for each observation (default=NULL, which generates a new group_i with even probability) |
kfold |
the number of crossvalidation batches used (default=10) |
newtonsteps |
number of extra newton steps to take after optimization (alternative to |
skip_finished |
boolean specifying whether to rerun (skip_finished==FALSE) or skip (skip_finished==TRUE) previously completed runs (Default=FALSE) |
... |
Additional arguments to pass to |
Results a matrix with total predictive negative log-likelihood for each crossvalidation partition, and number of crossvalidation samples for that partition
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.