In conclusion, the machine learning model of the 6-gene classifier consisting of HDAC5, NPM1, DTX3, MED12, TP53, and PPP3R1 can successfully predicts the prognosis of gastric cancer across all TNM stages in three different gastric cancer cohorts worldwide, irrespective of expression platform. Here, DTX3 is linked to gastric cancer.