Description Usage Arguments Value
Plots the kNN decision boundary for 2D problems.
1 2 |
train |
matrix or data.frame with 2 columns |
cl |
vector of training classes |
k |
number of neighbors |
validate |
matrix or data.frame with 2 columns |
cl_validate |
vector of classes |
prob_size |
whether to adjust the size of points depending on the estimated probabilities |
a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.