Deep Learning Specielization

Before you post, please make sure to:

  1. Add a clear title that describes your question.

  2. Add all required tags in the tag option (top-right of the post):

    • The platform (e.g., dl-ai-learning-platform or Coursera-platform.)

    • The course 2/2

  3. Write a detailed description sir I’m facing an error in Deeplearning Specielization on Coursera in course 3 week 2 second assignment everything runs okay all test passad but on submission it gives 0 grade and this error
    ”Cell #UNQ_C2. Can’t compile the student’s code. Error: SyntaxError(“unmatched ‘)’”, (‘/tmp/student_solution_cells/cell_16.py’, 37, 5, ’ )'))
    Traceback (most recent call last):
    File “/home/www/app/grading/exceptions.py”, line 112, in handle_solution_errors
    yield {}
    File “/home/www/app/grading/abstract.py”, line 393, in _grade
    context = compiled_code.run(cell_index=cell.index)
    File “/home/www/app/grading/submission/compiled_code.py”, line 195, in run
    return list(self._code_items.values())[cell_num - 1].run()
    File “/home/www/app/grading/submission/compiled_code.py”, line 54, in run
    return import_module(self.import_statement, items)
    File “/usr/local/lib/python3.8/importlib/_init_.py”, line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
    File “<frozen importlib._bootstrap>”, line 1014, in _gcd_import
    File “<frozen importlib._bootstrap>”, line 991, in _find_and_load
    File “<frozen importlib._bootstrap>”, line 975, in _find_and_load_unlocked
    File “<frozen importlib._bootstrap>”, line 671, in _load_unlocked
    File “<frozen importlib._bootstrap_external>”, line 839, in exec_module
    File “<frozen importlib._bootstrap_external>”, line 976, in get_code
    File “<frozen importlib._bootstrap_external>”, line 906, in source_to_code
    File “<frozen importlib._bootstrap>”, line 219, in _call_with_frames_removed
    File “/tmp/student_solution_cells/cell_16.py”, line 37
    )
    ^
    SyntaxError: unmatched ‘)’”.

Note: Screenshots are welcome, but please do not post full assignment code.

For more information, please check the FAQ category.

*Delete this message before posting

Hello @Saleet_01,

The error SyntaxError: unmatched ‘)’”. means that you were missing a close parenthesis. Locate the 16th code cell (which is for exercise 2), then check line 37.

Cheers,
Raymond

Btw, @Saleet_01, click “Toggle Line Numbers” to enable the feature to help you locate line 37.

If this is the alpaca_model function in the Transfer Learning with Mobilnet assignment, then this is a known phenomenon. Please see this thread.