“…These tasks rarely happen within database systems but in external tools [37,54] requiring the data to be extracted from database systems [30]. Thus, current research mostly focuses on eliminating the extraction process [26,41,8,56,51] and developing systems that combine data management and machine learning [35]. In contrast, in this paper, we argue that code generation allows database systems to perform well for machine learning when training neural networks [55] based on matrix algebra in SQL only [27,38,32,48,47].…”