Here we demonstrate that attention-based multiple-instance learning can predict EGFR mutational status in advanced metastatic lung adenocarcinoma samples directly from H&E images with state-of-the-art performance on real-world datasets, where many samples have less than 50% tumor content. This evidence concerns the gene EGFR and neoplasm.