KNNModel function

Weighted k-Nearest Neighbor Model