Machine Learning Material Spectra