Predictive performances of the different models in the primary and external validation cohorts (a–l). Plots show the ROC curves of stacking model, pre-model, post-model and delta-model, in HR+/HER2− (a), HER2+ (b) and TNBC subtype (c), respectively, in the primary cohort. Plots show the ROC curves of stacking model, pre-model, post-model and delta-model, in HR+/HER2− (d), HER2+ (e) and TNBC subtype (f), respectively, in the validation cohort 1. Plots show the ROC curves of stacking model, pre-model, post-model and delta-model, in HR+/HER2− (g), HER2+ (h) and TNBC subtype (i), respectively, in the validation cohort 2. Plots show the ROC curves of the stacking model, pre-model, post-model and delta-model, in HR+/HER2− (j), HER2+ (k) and TNBC subtype (l), respectively, in the validation cohort 3.