Description Usage Arguments Value Examples
If both modParam, and modRow are NULL
the held-out predictions of the
final model is returned.
1 2 |
x |
a |
modParam |
data frame with the parameters of the model. |
modRow |
the row or index of the model in the model-selection table. |
modRank |
the rank of the model after sorting by |
by |
a character or character vector specifying by which columns to sort.
If |
partition |
The default 'all' is to return all held out samples of the particular model, but a particular partition can be specified by its name (one of the sorted unique values in |
aggregate |
default |
held-out predicted decision values in a list with the elemetns $pos (positive held out predictions) and $un (unlabeled held out predictions). $pos and $un can be lists again depending on the resampling methods.
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(bananas)
oc <- trainOcc(x = bananas$tr[, -1], y = bananas$tr[, 1],
tuneGrid=expand.grid(sigma=c(.1, 1, 10),
cNeg=0.0625,
cMultiplier=64))
### hold-out predictions of the selected model
hop <- holdOutPredictions(oc)
### extract the hold-out samples of a model corresponding to
### a aspecific row of the results table, returned when
### printing a \'trainOcc\' object.
hop <- holdOutPredictions(oc, modRow=3)
### extract the hold-out predictions of a partition
hop <- holdOutPredictions(oc, partition=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.