A Self-consistent Data-driven Model for Determining Stellar Parameters from Optical and Near-infrared Spectra | Synapse