by minimaxir · 9y ago · 0 comments
I built a similar model which predicts the types of crimes in San Francisco using LightGBM (better than xgboost which is better than scikit-learn's GBMs/GBTs), filling lat/long, month, day-of-week, hour, and year (http://minimaxir.com/2017/02/predicting-arrests/). The classification aspect is much tricker than a simple regression. But even then, latitude and longitude constituted 70% of the Gain in the GBM model.
(as an aside, day-of-week/hour should likely be encoded as categorical variables using one-hot-encoding, although when I tested that in my post, the results were unchanged, oddly)