Our model was compared with different DL and ML models, and our AUC value and other major metrics were the highest among them for the prediction of PD-1 and PD-L1 expression in HCC patients. The gene discussed is CD274; the disease is hepatocellular carcinoma.