This study explores the factors associated with the development of thyroid-related adverse events in patients administered anti-PD-1/PD-L1 agents using training predictive models through various machine learning approaches. This evidence concerns the gene CD274 and thyroid gland disorder.