Learn R Programming

rocsvm.path (version 0.1.0)

rocsvm.intercept: Finding an intercept fixed sensitivity or specificity for ROC-SVM

Description

Computes an intercept at a specific sensitivity or specificity level from the ROC-SVM model.

Usage

rocsvm.intercept(obj, lambda = 1, sensitivity = 0.5, specificity = 0.5)

Arguments

obj

The rocsvm.path object

lambda

The regularization parameter that users want in ROC-SVM model.

sensitivity

Sensitivity in ROC curve, which means True Positive Rate (TPR).

specificity

Specificity in ROC curve, which means True Negative Rate (TNR) = 1-FPR.

See Also

rocsvm.path

Examples

Run this code
# NOT RUN {
# library(rocsvm.path)
# The 'obj' comes from an example description of rocsvm.path()
# }
# NOT RUN {
rocsvm.intercept(obj, lambda = 1, sensitivity = 0.9, specificity = 0.1) 
# }

Run the code above in your browser using DataLab