CrossValidationResultAccessors: CrossValidationResult Accessors

Description Usage Arguments Value Accessor-like methods Author(s) References Examples

Description

CrossValidationResult Accessors

Usage

1
2
## S4 method for signature 'CrossValidationResult'
folds(object)

Arguments

object

a cross validation result object (can be extracted from KeBABS model with accessor cvResult)

Value

folds: returns the folds used in CV
performance: returns a list with the performance values

Accessor-like methods

folds: return the CV folds.

performance: return the collected performance parameters.

Author(s)

Johannes Palme <kebabs@bioinf.jku.at>

References

http://www.bioinf.jku.at/software/kebabs

J. Palme, S. Hochreiter, and U. Bodenhofer (2015) KeBABS: an R package for kernel-based analysis of biological sequences. Bioinformatics, 31(15):2574-2576, 2015. DOI: 10.1093/bioinformatics/btv176.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## create kernel object for normalized spectrum kernel
specK5 <- spectrumKernel(k=5)
## Not run: 
## load data
data(TFBS)

## perform training - feature weights are computed by default
model <- kbsvm(enhancerFB, yFB, specK5, pkg="LiblineaR",
               svm="C-svc", cross=10, cost=15, perfParameters="ALL")

## show model selection result
cvResult(model)

## extract fold AUC
performance(cvResult(model))$foldAUC

## End(Not run)

kebabs documentation built on Nov. 8, 2020, 7:38 p.m.