Calibration of Multiparameter Sensors via Machine Learning at the Single-Photon Level