On the test cohort, for HER2/HR/LNM, the habitats model achieved the highest AUC values of 0.692/0.651/0.722, higher than those of the whole-tumor model (AUC = 0.591/0.599/0.609) and the CF model (AUC = 0.598/0.603/0.608). This evidence concerns the gene ERBB2 and neoplasm.