View source: R/gmValidationStrategy.R
NfoldCrossValidation | R Documentation |
Specify a strategy to validate a spatial model. Currently only leave-one-out and n-fold cross-validation are available, each specified by its own function. Leave-one-out takes no parameter.
NfoldCrossValidation(nfolds = 2, doAll = TRUE, ...)
nfolds |
Either, one integer between 2 and the number of hard conditioning data, specifying how many groups do you want to split the data available; or else a factor specifying these groups |
doAll |
boolean; should each group be used once for validating the model constructed with the remaining groups; else, only the first group will be used for validation, and the other will be used for training. |
... |
ignored |
An object, a list with an appropriate class, controlling the strategy specified. This can be of class "NfoldCrossValidation" or of class c("LeaveOneOut", "NfoldCrossValidation").
Other validation functions:
LeaveOneOut
,
validate()
NfoldCrossValidation(nfolds=5, doAll=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.