We quantify thermal crosstalk in a programmable photonic processor and present both analytical and data-driven models. We experimentally demonstrate model-based predictive crosstalk compensation for a microring resonator realized on a pre-calibrated chip, making it possible to tune the resonance wavelength with ±0.5 picometer accuracy.