Thanks, for your assistance. And sorry for my visible frustration.
Tip:
Here is an example of how you get a specific value that is stored in a dictionary. This is from the optimize() function in the code that you’re already provided.
# Retrieve derivatives from grads
dw = grads["dw"]
In this case, the dictionary is called ‘grads’, and the text string “dw” is called a ‘key’.
Every item in a dictionary has two parts - a key and a value.
When you use a dictionary and a key, you get back whatever is stored in that value. Then you store the value in a local variable, so you can do some math with it.
In this example, DLAI has confusingly used the same characters for the variable name and the key. This is done throughout the course. What’s important to know is that dw is the local variable name, and “dw” is a text string for the key.
You have to use this method when you write the code in model() where it says this:
# Retrieve parameters w and b from dictionary "params"
You use the “w” and “b” keys, and store them in local variables w and b.
Thank you so much for your time and dedication
.