sort.train: Sort or order the model selection table of a 'train' or...

Description Usage Arguments Examples

Description

The model selection table lists the parameters of the models evaluated during model selection together with the calculated performance metrics. This function is useful to find and compare the high ranked models.

Usage

1
2
3
## S3 method for class 'train'
sort(x, decreasing = TRUE, by = NULL, printTable = TRUE,
  rows = NULL, cols = NULL, digits = min(3, getOption("digits") - 3), ...)

Arguments

x

an object of class train or trainOcc.

decreasing

TRUE (default) to sort in decreasing order. can be a vector if by is a vector.

by

a character or character vector specifying by which columns to sort. If NULL the performance metric is taken from the train object.

printTable

TRUE for printing the table, else FALSE

rows

index of the rows to be printed (ignored if printTable=FALSE). default(NULL) prints all.

cols

index of the cols to be printed (ignored if printTable=FALSE). default(NULL) prints all.

digits

the number of digits to print

...

not currently used.

Examples

1
2
3
4
5
6
7
## Not run: 
data(bananas)
### an underfitted model 
oc <- trainOcc (x = bananas$tr[, -1], y = bananas$tr[, 1], method="ocsvm")
sort(oc, by="tpr")

## End(Not run)

benmack/oneClass documentation built on Dec. 15, 2020, 7:38 p.m.