Description Usage Arguments Value Source Examples
Extract K-nearest neighbor model parameters from a knn3 object created by the caret library
1 2 | ## S3 method for class 'knn3'
extract_params(object, ...)
|
object |
an object of class "knn3" |
... |
further arguments passed to or from other methods |
PFA as a list-of-lists that can be inserted into a cell or pool
pfa_utils.R
1 2 3 4 | iris2 <- iris
colnames(iris2) <- gsub('\\.', '_', colnames(iris2))
model <- caret::knn3(Species ~ ., iris2)
extracted_params <- extract_params(model)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.