powered by
Extract K-nearest neighbor model parameters from a knnreg object created by the caret library
# S3 method for knnreg extract_params(object, ...)
an object of class "knnreg"
further arguments passed to or from other methods
PFA as a list-of-lists that can be inserted into a cell or pool
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