plot.knn_cv | R Documentation |
plots the misclassification error rate versus number of neighbors based on call to knn_cv
## S3 method for class 'knn_cv'
plot(x, ...)
x |
object of class knn_cv. |
... |
additional arguments. currently not used. |
The list x is assumed to have attributes kvec and error representing the number of neighbors and the corresponding misclassification rate, respectively.
No return value, called for side effects of creating plot.
John Kloke
Hastie, T., Tibshiani, R., and Friedman, J. (2017), The Elements of Statistical Learning: Data Mining, Inference, and Prediction, Second Edition, New York: Springer.
James, G., Witten, D., Hastie, T., and Tibshirani, R. (2013), An Introduction to Statistical Learning with Applications in R, New York: Springer.
Venables, W. N. and Ripley, B. D. (2002) _Modern Applied Statistics with S._ Fourth edition. Springer.
knn_cv
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.