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










0












$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?










share|improve this question









$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.






















    0












    $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?










    share|improve this question









    $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.




















      0












      0








      0





      $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?










      share|improve this question









      $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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      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.






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $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.






          share|improve this answer









          $endgroup$



















            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0












            $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.






            share|improve this answer









            $endgroup$

















              0












              $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.






              share|improve this answer









              $endgroup$















                0












                0








                0





                $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.






                share|improve this answer









                $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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 29 at 21:21









                BjörnBjörn

                243111




                243111













                    Popular posts from this blog

                    Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

                    Tähtien Talli Jäsenet | Lähteet | NavigointivalikkoSuomen Hippos – Tähtien Talli

                    Do these cracks on my tires look bad? The Next CEO of Stack OverflowDry rot tire should I replace?Having to replace tiresFishtailed so easily? Bad tires? ABS?Filling the tires with something other than air, to avoid puncture hassles?Used Michelin tires safe to install?Do these tyre cracks necessitate replacement?Rumbling noise: tires or mechanicalIs it possible to fix noisy feathered tires?Are bad winter tires still better than summer tires in winter?Torque converter failure - Related to replacing only 2 tires?Why use snow tires on all 4 wheels on 2-wheel-drive cars?