Learn R Programming

FastKNN (version 0.0.1)

Fast k-Nearest Neighbors

Description

Compute labels for a test set according to the k-Nearest Neighbors classification. This is a fast way to do k-Nearest Neighbors classification because the distance matrix -between the features of the observations- is an input to the function rather than being calculated in the function itself every time.

Copy Link

Version

Install

install.packages('FastKNN')

Monthly Downloads

400

Version

0.0.1

License

GPL-3

Maintainer

Gaston Besanson

Last Published

February 12th, 2015

Functions in FastKNN (0.0.1)

knn_test_function

KNN Test The knn_test_function returns the labels for a test set using the k-Nearest Neighbors Clasification method.
Distance_for_KNN_test

Distance for KNN Test The Distance_for_KNN_test returns the distance matrix between the test set and the training set.
k.nearest.neighbors

k-Nearest Neighbors the k.nearest.neigbors gives the list of points (k-Neigbours) that are closest to the row i in descending order.
knn_training_function

KNN Training The knn_training_function returns the labels for a training set using the k-Nearest Neighbors Clasification method.