Hello everyone, I hope you are doing well.
I am trying to finalize the week 2 assingment. However, the following error appears when I run the function logistc_regression_model:
Therefore, I would like to know if someone can help me to identify the error because the previous steps completed the tests successfully.
You must be referencing global variables in your
model code where you set the dimension of w. Are you sure your
model function passes the other test cases before you do the real model training? If this error is on the test case, not the real training, then the global variables are the training data.
First, thanks for the help.
I believe the problem is in the initialize_with_zeros function:
I changed the parameter value and the model function failed, however now the second part worked, I’m still a bit confused.
anyway, I’ll re-read your suggestion and try to track this error in my code. Thank you very much!