0
$\begingroup$

The predictors are latitude and longitude, and target variable is region.

$\endgroup$
1
  • $\begingroup$ Take the cosine of the longitude, and take the sine of the latitude. This way, points on either side of the anti-meridian (longitude 180) will be near each other in the transformed space. You may need to convert the longitude/latitude to radians first depending on the implementation of sin and cos that you're using. $\endgroup$ – timleathart Apr 5 '18 at 21:19
1
$\begingroup$

Rather than modifying your data, use great circle distance for those features' conmponent of the cost function.

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.