Week 1 : Programming assignment :

1.Can you explain what exactly is layer_dims. I know its layer dimension but how to have the institution of it to understand it better?
2. Here layer_dims=[X.shape[0],10,5,1]
how did values 10,5,1 come???
X.shape[0] we take for Rows why we not taking x.shape[1]

layer_dims represents the number of neurons in each layer. In this case, there are three layers having 10, 5 and 1 as the number of neurons.
You can experiment with the number of neurons, but for the grading purpose get back to the original number.
Each column of X represents one example. Hence the number of rows of the matrix gives the number of features.

1 Like