knnFeat
knnFeat copied to clipboard
how to make test feature by using this?
Thanks for publishing a great blog and implementation!
I understand that the following implementation will create a new feature for train data.
from knnFeat import knnExtract
newX = knnExtract(X, y, k = 1, folds = 5)
But how do I create a feature that corresponds to the test data? I would be grateful if you could reply.