Learn R Programming

aurelius (version 0.8.4)

extract_params.knnreg: extract_params.knnreg

Description

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

Usage

# S3 method for knnreg
extract_params(object, ...)

Arguments

object

an object of class "knnreg"

...

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

Run this code
model <- caret::knnreg(mpg ~ cyl + hp + am + gear + carb, data = mtcars)
extracted_params <- extract_params(model)

Run the code above in your browser using DataLab