Hi,
I am trying to execute the planar data classficiation problem. The layer_sizes function is giving me an error.(I think the assertion errors)
It gives an error even if i hardcode values to what’s expected in the output (which is given below that cell).
When i change the output to (7,4,5) even that gives me an error.
There are multiple different test cases being executed for this function. It looks like you may have “hard-coded” the values to match one of the test cases, but then you fail the other one which has different inputs.
The idea is to write the code to use the actual parameter values that are being passed in, which are X and Y. The instructions tell you to use the shape attribute of those input variables to figure out the values of n_x and n_y.
If you’re not sure what I mean by that, one experiment to try would be to add some print statements to your code like:
print(f"X.shape = {X.shape}")
print(f"Y.shape = {Y.shape}")
What do you see if you add those statements and then run the test cases?