A neural network is a clever arrangement of linear and non-linear modules. When we choose and connect them wisely, we have a powerful tool…