Algebraic Visual Design for Deep Learning