A mathematical primer to classical deep learning | Synapse