Description Usage Arguments Value Examples
View source: R/modelPosition.R
Given the parameter(s), results table row, or rank of a particular metric of the results table, the corresponding two informations are extracted.
1 2 |
x |
an object as returned from train. |
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 column of the |
decreasing |
only when |
a list with the parameter, row index and rank of the model.
1 2 3 4 5 6 7 8 | data(bananas)
oc <- trainOcc(x = bananas$tr[, -1], y = bananas$tr[, 1],
tuneGrid=expand.grid(sigma=c(.1, 1),
cNeg=c(0.1, 1),
cMultiplier=c(10, 100)))
## get the position (in the results table) and parameters of model which is
## on rank 3 according to the performance metric \'puAuc\'
mp3 <- modelPosition(oc, modRank=3, by="puAuc")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.