Please use devtools so you can install this package in R.
The command to do this is `devtools::install_github("besanson/FastKNN").
After this just do library(FastKNN) as with a normal R package.
Remember that this Package is under GPL-3 License.
FastKNN consist of several functions:
-
k.nearest.neighbors: gives the list of points (k neigbours) that are closest to the row i in descending order. Please see?k.nearest.neighborsfor further details. -
knn_test_function: returns the labels for a test set using the KNN Clasification method.Please see?knn_test_functionfor further details and an**Example**. -
knn_training_function: returns the labels for a training set using the KNN Clasification method. Please see?knn_training_functionfor further details. -
Distance_for_KNN_test: returns the distance matrix between the test set and the training set. Please see?Distance_for_KNN_testfor further details.