Deep neural networks in a mathematical framework. (2018)