Date transformation for KNN
I have data set with date features like 01/01/2019
and I would like to use KNN. However, I cannot find a good transformation for dates that has a meaningful distance result for the last feature.
For example:
f1 | 1 | 2 | 3 | 4 | 01/01/2019
f2 | 10 | 3 | 12 | 1 | 14/01/2019
Does anyone have any recommendations?
Topic k-nn data distance machine-learning
Category Data Science