We identified 4 hub genes, namely, LAMA4, POLA2, RAD51, and TYMS, which were used as the final variables, and found that AdaBoostClassifie was the best algorithm for the classification and diagnosis model of hepatocellular carcinoma. The gene discussed is RAD51; the disease is hepatocellular carcinoma.