Unfortunately, I couldn’t modify the number of iterations (num of iteration =2) in the assignment and always have errors when running the cell.
I want to modify it to be 2499 but I can’t ?, any solution, please? Deep Learning Specializationweek-4Neural Networks and Deep Learning
Further, can you post the error(s) you are getting ?
** Correction: Okay, I see now. But changing num_iterations = 2 – that is in the test, which you cannot change. In this case it is overriding the value of the default two_layer_model num_iterations = 3000 value.
So this probably just means you have a mistake somewhere in your function.
Again, posting the error result you recieve would help.
Thank you,
My main problem is not in the cell above where I can modify it, the problem is in the down cell I can’t modify the number of iterations, it is always 2 and the cell is unchangeable!!
That has nothing to do with the number of iterations. It is the number of return values your function is returning. That probably means you copied a very old version of that notebook (pre-April 2021) and they have changed the definition of that function.
It is a bad idea to copy old code off the internet a) because it’s cheating and you don’t really learn anything and b) because it doesn’t work if the code is old.
I suggest you rename your notebook, get a clean copy and then start over. You may be able to salvage some of your previous “work”, but you need to be careful to respect the template code they give you. You can’t just “copy/paste” over the whole function without looking.