getVIMP: Extract the VIMP if it is present

Description Usage Arguments Value Note

View source: R/OOP_util.R

Description

This function will extract the Variable Importance data if the model contains it, otherwise it attempts to compute it using a leave-one-out algorithm.

Usage

1
getVIMP(model, calc)

Arguments

model

is the model for which to extract the VIMP

calc

should the VIMP be computed using npelVIMP(calc=T)

Value

a data frame with the VIMP data if it is present, otherwise NULL

Note

The nearest neighbour models in package:FNN and package:class do not enclose their results in a class; when NPEL.Classification builds objects of these types it wraps them in a class so they are recognizable by S3 methods, and attaches the formula and data. Hence, if a model was built directly using these packages the result will not run this function.


henkelstone/NPEL.Classification documentation built on May 17, 2019, 3:42 p.m.