In the programming assignment “Planar data classification with one hidden layer” there is a small issue with the function nn_model. When you write the function, if you hardcode the number of hidden layers to be 4 rather than using the parameter n_h passed into the function, the notebook doesn’t catch it. Everything is fine until you get to the optional part with comparisons of different n_h values. This part obviously doesn’t work if you hard coded n_h as 4.
Maybe this is mistake is too silly to take into account. I only made it thanks to a combination of sleep deprivation and over-excitement. But it did lead to me getting very confused while running the optional part…