preformat | R Documentation |
Presorts and formats training frame into a form suitable for
subsequent training by rfArb
caller or rfTrain
command. Wraps this form to spare unnecessary recomputation when
iteratively retraining, for example, under parameter sweep.
## Default S3 method:
preformat(x,
verbose=FALSE,
...)
x |
the design frame expressed as either a |
verbose |
indicates whether to output progress of preformatting. |
... |
unused. |
an object of class Deframe
consisting of:
rleFrame |
run-length encoded representation of class
|
nRow |
the number of training observations. |
signature |
an object of type |
Mark Seligman at Suiji.
Rborist
## Not run:
data(iris)
pt <- preformat(iris[,-5])
ppTry <- seq(0.2, 0.5, by= 0.3/10)
nIter <- length(ppTry)
rsq <- numeric(nIter)
for (i in 1:nIter) {
rb <- Rborist(pt, iris[,5], predProb=ppTry[i])
rsq[i] = rb$validiation$rsq
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.