extract_params.ipredknn {aurelius}R Documentation

extract_params.ipredknn

Description

Extract K-nearest neighbor model parameters from a ipredknn object created by the ipred library

Usage

## S3 method for class 'ipredknn'
extract_params(object, ...)

Arguments

object

an object of class "ipredknn"

...

further arguments passed to or from other methods

Value

PFA as a list-of-lists that can be inserted into a cell or pool

Examples

iris2 <- iris
colnames(iris2) <- gsub('\\.', '_', colnames(iris2))
model <- ipred::ipredknn(Species ~ ., iris2)
params <- extract_params(model)

[Package aurelius version 0.8.4 Index]