Learn R Programming

kebabs (version 1.6.2)

KBModelAccessors: KBModel Accessors

Description

KBModel Accessors

Usage

## S3 method for class 'KBModel':
modelOffset(object)

getSVMSlotValue(paramName, model, raw = FALSE)

Arguments

object
a KeBABS model
paramName
unified name of an SVM model data element
model
a KeBABS model
raw
when set to TRUE the parameter value is delivered in exactly the way as it is stored in the SVM specific model, when set to FALSE it is delivered in unified format

Value

  • getSVMSlotValue: value of requested parameter in unified or native format dependent on parameter raw.

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: http://dx.doi.org/10.1093/bioinformatics/btv176{10.1093/bioinformatics/btv176}.

Examples

Run this code
## create kernel object for normalized spectrum kernel
specK5 <- spectrumKernel(k=5)
## load data
data(TFBS)

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

## show result of validation
cvResult(model)
## show feature weights
featureWeights(model)[1:5]
## show model offset
modelOffset(model)

Run the code above in your browser using DataLab