C3: W4: A: About the optimizer

What optimizer we may use in this assignment?
Can we add imports like the one below in our graded function?
from tensorflow.keras.optimizers import [some optimizer here]

Choice of optimizer and the learning rate are hyperparameters that you must decide for the model. One way to get started is with the optimizers covered so far in this specialization.

1 Like

Thanks for your swift response. I understand what you kindly explained.

My question is that the assignment does not import an optimizer library. Can I add any imports to the notebook? I read some threads where the grader generates errors when someone imports libraries other than the ones provided.

If I can add imports as I see necessary, where can I do this? In the import cell or inside the graded function?

If I cannot import libraries, how can I call an optimizer that is not defined in the notebook?

You should be able to add tensorflow imports inside your graded function or in the cell where you compile the model. Please try it now and reply to this thread if the grader complains.

It works well. Thanks, @balaji.ambresh for the kind help!