I am working on Week 2, Assignment 2 of Course 4 in the Deep Learning Specialization, and my code runs correctly in the notebook. However, the autograder keeps rejecting my submission with errors like SyntaxError: unmatched ')' or Malformed Feedback. I think the problem may be related to the required template structure or grader expectations.
I would really appreciate any guidance or help to understand what is causing this issue.
This is the Transfer Learning assignment. The grader does not accept it if you place the close paren on a separate line, even though that is valid pyton syntax.
Here is the clean template code:
base_model = tf.keras.applications.MobileNetV2(input_shape=None,
include_top=None, # <== Important!!!!
weights=base_model_path)
# freeze the base model by making it non trainable
base_model.trainable = None
If when you fill in your code, you end up formatting it like this: