This repository contains code for data processing, model training, and performance evaluation of our paper Predicting Solar Flares using CNN and LSTM on Two Solar Cycles of Active Region Data (Sun et al. 2022, submitted to the Astrophysical Journal).