Date transformation for KNN to get distance [duplicate] The 2019 Stack Overflow Developer Survey Results Are InDate transformation for KNNHow to appropriately set weights for weighted KNNLearn and sample from a generative model with 2000 boolean featuresDistance measure for ternary featureWhen would one use Manhattan distance as opposite to Euclidean distance?Extract and normalize date from string for the proper text miningDistance measure calculation addresses for record linkingadvice on distance metric for knn w/image recognitionTime Series prediction for uneven data with some data providedMachine learning or NLP approach to convert string about month ,year into datesDate transformation for KNN
Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?
Is it possible for absolutely everyone to attain enlightenment?
What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?
How to check whether the reindex working or not in Magento?
How to deal with speedster characters?
Ubuntu Server install with full GUI
Why doesn't mkfifo with a mode of 1755 grant read permissions and sticky bit to the user?
If a sorcerer casts the Banishment spell on a PC while in Avernus, does the PC return to their home plane?
Landlord wants to switch my lease to a "Land contract" to "get back at the city"
Why are there uneven bright areas in this photo of black hole?
Are spiders unable to hurt humans, especially very small spiders?
Time travel alters history but people keep saying nothing's changed
If I can cast sorceries at instant speed, can I use sorcery-speed activated abilities at instant speed?
Why is ParallelDo slower than Do?
Is bread bad for ducks?
When should I buy a clipper card after flying to Oakland?
What is the most efficient way to store a numeric range?
Why couldn't they take pictures of a closer black hole?
Is Sun brighter than what we actually see?
Did any laptop computers have a built-in 5 1/4 inch floppy drive?
Using xargs with pdftk
Is "plugging out" electronic devices an American expression?
How do I free up internal storage if I don't have any apps downloaded?
What is the meaning of Triage in Cybersec world?
Date transformation for KNN to get distance [duplicate]
The 2019 Stack Overflow Developer Survey Results Are InDate transformation for KNNHow to appropriately set weights for weighted KNNLearn and sample from a generative model with 2000 boolean featuresDistance measure for ternary featureWhen would one use Manhattan distance as opposite to Euclidean distance?Extract and normalize date from string for the proper text miningDistance measure calculation addresses for record linkingadvice on distance metric for knn w/image recognitionTime Series prediction for uneven data with some data providedMachine learning or NLP approach to convert string about month ,year into datesDate transformation for KNN
$begingroup$
This question is an exact duplicate of:
Date transformation for KNN
1 answer
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?
machine-learning data distance k-nn
$endgroup$
marked as duplicate by Ethan, Siong Thye Goh, Mark.F, Sean Owen Mar 30 at 8:08
This question was marked as an exact duplicate of an existing question.
add a comment |
$begingroup$
This question is an exact duplicate of:
Date transformation for KNN
1 answer
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?
machine-learning data distance k-nn
$endgroup$
marked as duplicate by Ethan, Siong Thye Goh, Mark.F, Sean Owen Mar 30 at 8:08
This question was marked as an exact duplicate of an existing question.
add a comment |
$begingroup$
This question is an exact duplicate of:
Date transformation for KNN
1 answer
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?
machine-learning data distance k-nn
$endgroup$
This question is an exact duplicate of:
Date transformation for KNN
1 answer
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?
This question is an exact duplicate of:
Date transformation for KNN
1 answer
machine-learning data distance k-nn
machine-learning data distance k-nn
asked Mar 29 at 20:53
MappMapp
143
143
marked as duplicate by Ethan, Siong Thye Goh, Mark.F, Sean Owen Mar 30 at 8:08
This question was marked as an exact duplicate of an existing question.
marked as duplicate by Ethan, Siong Thye Goh, Mark.F, Sean Owen Mar 30 at 8:08
This question was marked as an exact duplicate of an existing question.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
What do you consider a meaningful distance? One possibility would be days since some reference date.
If seasonality also matters, you could additionally (or also) have calendar date or some sine or cosine functions with period 1 year/n for integer n - the idea being to get a periodic spline. The same kind of idea (or flagging weekday vs. weekend etc.) could apply to day of the week, if that makes sense for your problem.
$endgroup$
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
What do you consider a meaningful distance? One possibility would be days since some reference date.
If seasonality also matters, you could additionally (or also) have calendar date or some sine or cosine functions with period 1 year/n for integer n - the idea being to get a periodic spline. The same kind of idea (or flagging weekday vs. weekend etc.) could apply to day of the week, if that makes sense for your problem.
$endgroup$
add a comment |
$begingroup$
What do you consider a meaningful distance? One possibility would be days since some reference date.
If seasonality also matters, you could additionally (or also) have calendar date or some sine or cosine functions with period 1 year/n for integer n - the idea being to get a periodic spline. The same kind of idea (or flagging weekday vs. weekend etc.) could apply to day of the week, if that makes sense for your problem.
$endgroup$
add a comment |
$begingroup$
What do you consider a meaningful distance? One possibility would be days since some reference date.
If seasonality also matters, you could additionally (or also) have calendar date or some sine or cosine functions with period 1 year/n for integer n - the idea being to get a periodic spline. The same kind of idea (or flagging weekday vs. weekend etc.) could apply to day of the week, if that makes sense for your problem.
$endgroup$
What do you consider a meaningful distance? One possibility would be days since some reference date.
If seasonality also matters, you could additionally (or also) have calendar date or some sine or cosine functions with period 1 year/n for integer n - the idea being to get a periodic spline. The same kind of idea (or flagging weekday vs. weekend etc.) could apply to day of the week, if that makes sense for your problem.
answered Mar 29 at 21:21
BjörnBjörn
243111
243111
add a comment |
add a comment |