Hi, all programming exercise for week 4 is used for classification problems.
I want to implement or make my own deep neural network that can be used for regression. I intend to use activation functions of ‘relu’ for the L-1 layers and ‘linear’ for L-th layer. How will my code change from the programming exercise? more specifically
- If I use the mean squared error as the loss function, what will be the expression for dAL to be used for the backpropagation?
- How do I calculate the dAprev, dW and db for a layer with ‘linear’ activation?
- What other things should I change from the programming exercise in order to use it for regression problems?
thanks in advance.