extract_params.knn3: extract_params.knn3

Description Usage Arguments Value Source Examples

Description

Extract K-nearest neighbor model parameters from a knn3 object created by the caret library

Usage

1
2
## S3 method for class 'knn3'
extract_params(object, ...)

Arguments

object

an object of class "knn3"

...

further arguments passed to or from other methods

Value

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

Source

pfa_utils.R

Examples

1
2
3
4
iris2 <- iris
colnames(iris2) <- gsub('\\.', '_', colnames(iris2))
model <- caret::knn3(Species ~ ., iris2)
extracted_params <- extract_params(model)

aurelius documentation built on May 2, 2019, 3:43 a.m.