DUET: Optimizing Training Data Mixtures via Feedback from Unseen Evaluation Tasks