Description Usage Arguments Value Author(s) Examples
Search the best 'k' parameter
1 2 3 | k_knn_tester(data, target = is.integer(), k = is.vector(),
method = c("bootstrap", "cross_validation"), metric = c("Accuracy",
"Sensitivity", "Specificity"), ...)
|
data |
Dataframe that will be used |
target |
Integer with the column number of the target variable |
k |
vector of values to use |
method |
"bootstrap" or "cross_validation" |
metric |
Metric that will be evaluated. Possible values: "Accuracy", "Sensitivity" or "Specificity" |
Returns the mean values for the metric selected for each 'k' value and plots
Alberto Almui?a
1 | data<-k_knn_tester(data = iris, target = 5, k = c(3,5,7,9), method = "bootstrap", metric = "Sensitivity")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.