Spatially-resolved Thermometry from Line-of-Sight Emission Spectroscopy via Machine Learning