Missing value Imputation in dataset
I have two separate files for Testing and Training.
In the training data, I am dropping rows that contain too many missing values .
But , In the test data , I cannot afford to drop the rows so I have chosen to impute the missing values using KNN approach .
My question is , to impute missing values in the test data using KNN , is it enough to consider only the test data ? As in , neighbors in the test data alone ?
Topic k-nn data-imputation data-cleaning machine-learning
Category Data Science