--

One technique you can use is - find the distance from each lat/long pair to all other lat/long pairs in the dataset. This will create a matrix of distances that you can train your model on. Another alternative is to convert the lat/long pairs to an xyz coordinate system. I generally use one of these approaches depending on the type and amount of data available. You can easily find codes online to implement the solutions above in Python.

--

--

Responses (1)