Description Usage Arguments Author(s) References See Also Examples

Visualizing the Optimal Number of k for k-Nearest Neighbour Classification`kNN`

based on accuracy or Mean Square Error (MSE).

1 2 |

`formula` |
a formula, with a response but no interaction terms. For the case of data frame, it is taken as the model frame (see |

`train` |
data frame or matrix of train set cases. |

`test` |
data frame or matrix of test set cases. |

`k.max` |
the maximum number of number of neighbours to consider, must be at least two. |

`transform` |
a character with options |

`base` |
base measurement: |

`set.seed` |
a single value, interpreted as an integer, or NULL. |

` ... ` |
options to be passed to |

Reza Mohammadi a.mohammadi@uva.nl and Kevin Burke kevin.burke@ul.ie

Ripley, B. D. (1996)
*Pattern Recognition and Neural Networks.* Cambridge.

Venables, W. N. and Ripley, B. D. (2002)
*Modern Applied Statistics with S.* Fourth edition. Springer.

1 2 3 4 5 6 7 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.