Towards a Machine Learning Framework in Spatial Analysis