validate | R Documentation |
Permits trained decision forest to be validated separately from training.
## Default S3 method:
validate(train, sampler, preFormat = NULL, ctgCensus
= "votes", impPermute = 0, quantVec = NULL, quantiles =
!is.null(quantVec), indexing = FALSE, trapUnobserved = FALSE, nThread = 0, verbose =
FALSE, ...)
train |
an object of class |
sampler |
summarizes the response and its per-tree samplgin. |
preFormat |
internal representation of the design matrix, of
class |
ctgCensus |
report categorical validation by vote or by probability. |
impPermute |
specifies the number of importance permutations: 0 or 1. |
quantVec |
quantile levels to validate. |
quantiles |
whether to report quantiles at validation. |
indexing |
whether to report final index, typically terminal, of tree traversal. |
trapUnobserved |
indicates whether to return a nonterminal for values unobserved during training, such as missing data. |
nThread |
suggests an OpenMP-style thread count. Zero denotes the default processor setting. |
verbose |
indicates whether to output progress of validation. |
... |
not currently used. |
an object of one of two classes:
SummaryReg |
summarizing regression, consisting of:
|
SummaryCtg |
summarizing classification, consisting of:
|
Mark Seligman at Suiji.
Rborist
## Not run:
## Trains without validation.
rb <- Rborist(x, y, novalidate=TRUE)
...
## Delayed validation using a preformatted object.
pf <- preformat(x)
v <- validate(pf, rb, y)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.