Inference And Machine Learning Across The Spatial Scales In Geophysics