Julia wrapper for knnFeat(https://github.com/upura/knnFeat)
Feature Extraction with KNN
Julia implementation of feature extraction with KNN.
The following is R implementation: http://davpinto.com/fastknn/articles/knn-extraction.html#understanding-the-knn-features
The following is Python implementation: https://github.com/upura/knnFeat
using Gadfly
x1 = rand(500) - 0.5
x2 = rand(500) - 0.5
X = [x1 x2]
y = 1 * ((x1 .* x2) .> 0)
include("knnFeat.jl")
newX = knnExtract(X, y, 1, 5)