Error-mitigated data-driven circuit learning on noisy quantum hardware