f_model_importance_svm: extract variable importance for svm

Usage Arguments Details Value Examples

View source: R/f_model_imp.R

Usage

1

Arguments

m

model of class svm

data

original training dataframe

Details

uses 1D-SA 1 dimensional sensitivity analysis using rminer::Importance()

Value

dataframe

Examples

1
2
3
4
5
6
7
8
9
#regression
m = twidlr::svm(mtcars, disp~.)
f_model_importance_svm(m, mtcars)

#classification
data = mtcars
data$cyl = factor(data$cyl, ordered = T)
m = twidlr::svm(data, cyl~.)
f_model_importance_svm(m, data)

erblast/oetteR documentation built on Feb. 15, 2018, 5:12 p.m.